This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 255276 - NullPointerException at org.netbeans.modules.javascript.bower.ui.libraries.LibrariesPanel.uninstallDependencies
Summary: NullPointerException at org.netbeans.modules.javascript.bower.ui.libraries.Li...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Tools (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-14 14:35 UTC by Exceptions Reporter
Modified: 2015-09-16 01:26 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215059


Attachments
stacktrace (2.24 KB, text/plain)
2015-09-14 14:35 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2015-09-14 14:35:08 UTC
Build: NetBeans IDE Dev (Build 201509110002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Mac OS X

User Comments:
hecg119: <???????????????>
complie kibana4

GUEST: I was configuring project properties

GUEST: edited project properties and tried to setup npm and bower configurations

salaboy: issue installing bower

GUEST: I dont know what this about.

ambrosia: Was making some configuration changes.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.javascript.bower.ui.libraries.LibrariesPanel.uninstallDependencies(LibrariesPanel.java:355)
   at org.netbeans.modules.javascript.bower.ui.libraries.LibrariesPanel.access$1300(LibrariesPanel.java:79)
   at org.netbeans.modules.javascript.bower.ui.libraries.LibrariesPanel$2.run(LibrariesPanel.java:222)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
   at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
   at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
Comment 1 Exceptions Reporter 2015-09-14 14:35:11 UTC
Created attachment 156155 [details]
stacktrace
Comment 2 Tomas Mysik 2015-09-15 05:28:29 UTC
Honzo? Thanks.
Comment 3 Jan Stola 2015-09-15 11:51:56 UTC
This exception can occur when Bower is not configured correctly. If this happens then we may not be able to get information about installed Bower packages. If this happens then the project properties UI correctly informs the user about this problem. Unfortunately, if the user doesn't fix the problem and doesn't reload the list but presses OK button instead then this exception occurs.

I have modified the corresponding code to avoid the exception in the described scenario.

Modified file: https://hg.netbeans.org/web-main/rev/9c686033ec76
Comment 4 Quality Engineering 2015-09-16 01:26:50 UTC
Integrated into 'main-silver', will be available in build *201509160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9c686033ec76
User: Jan Stola <jstola@netbeans.org>
Log: #255276: Avoiding a potential NPE.