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 268107 - NullPointerException at org.netbeans.modules.java.j2seproject.J2SEActionProvider$Provider.forRoot
Summary: NullPointerException at org.netbeans.modules.java.j2seproject.J2SEActionProvi...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: 82_HR_FIX
Depends on:
Blocks:
 
Reported: 2016-09-20 06:16 UTC by javatlacati
Modified: 2016-09-20 16:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 226306


Attachments
stacktrace (5.17 KB, text/plain)
2016-09-20 06:16 UTC, javatlacati
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javatlacati 2016-09-20 06:16:12 UTC
Build: NetBeans IDE 8.2 RC (Build 201609140952)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15
OS: Windows 8

User Comments:
javatlacati: Opening HTML5 application project. It marked that sources of nodejs weren't found tried to select but selected upper folder C:\Program Files\nodejs instead of C:\Program Files\nodejs\node_modules\npm then Issue appeared.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.java.j2seproject.J2SEActionProvider$Provider.forRoot(J2SEActionProvider.java:709)
   at org.netbeans.modules.java.preprocessorbridge.api.CompileOnSaveActionQuery.lambda$findAll$0(CompileOnSaveActionQuery.java:120)
   at org.netbeans.modules.java.preprocessorbridge.api.CompileOnSaveActionQuery$$Lambda$156/1065904609.apply(CompileOnSaveActionQuery.java:0)
   at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
   at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
   at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
Comment 1 javatlacati 2016-09-20 06:16:15 UTC
Created attachment 162121 [details]
stacktrace
Comment 2 Tomas Zezula 2016-09-20 12:46:30 UTC
Not sure how this may happen, the project did not provide ActionProvider in its Lookup.
But i will prevent the NPE.
Fixed jet-main 7b89ba03d8ab
Comment 3 Tomas Zezula 2016-09-20 14:52:39 UTC
Transplanted into NB 8.2: c90eb0ea4015

Thanks for the report!