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 251517 - NullPointerException at java.util.concurrent.ConcurrentHashMap.put
Summary: NullPointerException at java.util.concurrent.ConcurrentHashMap.put
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-30 19:58 UTC by Vladimir Riha
Modified: 2015-04-03 11:04 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216464


Attachments
stacktrace (4.61 KB, text/plain)
2015-03-30 19:58 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-03-30 19:58:14 UTC
Build: NetBeans IDE Dev (Build 201503300001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
vriha: added dependency with 'null' version to package.json




Stacktrace: 
java.lang.NullPointerException
   at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1124)
   at java.util.concurrent.ConcurrentHashMap.putAll(ConcurrentHashMap.java:1162)
   at org.netbeans.modules.javascript.nodejs.file.PackageJson$NpmDependencies.<init>(PackageJson.java:158)
   at org.netbeans.modules.javascript.nodejs.file.PackageJson.getDependencies(PackageJson.java:142)
   at org.netbeans.modules.javascript.nodejs.problems.NpmProblemsProvider.npmInstallRequired(NpmProblemsProvider.java:158)
   at org.netbeans.modules.javascript.nodejs.problems.NpmProblemsProvider.checkDependencies(NpmProblemsProvider.java:141)
Comment 1 Vladimir Riha 2015-03-30 19:58:17 UTC
Created attachment 152934 [details]
stacktrace
Comment 2 Tomas Mysik 2015-03-31 07:23:04 UTC
Sorry, I somehow forgot to fix package.json - done now. Thanks.

http://hg.netbeans.org/web-main/rev/7149b2e59b1b
Comment 3 Quality Engineering 2015-04-01 02:53:45 UTC
Integrated into 'main-silver', will be available in build *201504010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7149b2e59b1b
User: Tomas Mysik <tmysik@netbeans.org>
Log: #251517 - NullPointerException at java.util.concurrent.ConcurrentHashMap.put
Comment 4 Vladimir Riha 2015-04-03 11:04:37 UTC
Works fine, thank you

Product Version: NetBeans IDE Dev (Build 201504030001)
Java: 1.8.0_40; Java HotSpot(TM) Client VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b25
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)