1. NBAndroid
  2. Untitled project
  3. nbandroid
  4. Issues
Issue #61 new

NullPointer in DependenciesNode if using a compileProject dependency

deveth0
created an issue

Hi,

I've a project setup with a android application using a compileProject dependency. If the dependency has never been compiled (or the build folder been deleted), opening the Dependencies Node in Netbeans causes a NPE (see below).

I think the reason is a missing null-check in DependenciesNode:87.

Cheers

java.lang.NullPointerException
  at org.nbandroid.netbeans.gradle.ui.DependenciesNode$1.addLibraries(DependenciesNode.java:86)
  at org.nbandroid.netbeans.gradle.ui.DependenciesNode$DependenciesChildren.getKeys(DependenciesNode.java:254)
  at org.nbandroid.netbeans.gradle.ui.DependenciesNode$DependenciesChildren.addNotify(DependenciesNode.java:217)
  at org.openide.nodes.Children.callAddNotify(Children.java:575)
  at org.openide.nodes.EntrySupportDefault.getArray(EntrySupportDefault.java:650)
  at org.openide.nodes.EntrySupportDefault.getNodes(EntrySupportDefault.java:162)
  at org.openide.nodes.EntrySupportDefault.getNodesCount(EntrySupportDefault.java:176)
  at org.openide.nodes.Children.getNodesCount(Children.java:520)
  at org.openide.nodes.FilterNode$Children$DefaultSupport.callGetNodesCount(FilterNode.java:1683)
  at org.openide.nodes.FilterNode$Children.getNodesCount(FilterNode.java:1634)
[catch] at org.openide.explorer.view.TreeView$6.run(TreeView.java:988)
  at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
  at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

Comments (0)

  1. Log in to comment