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 258314 - NullPointerException at org.netbeans.modules.cnd.makeproject.api.configurations.CCCompilerConfiguration.getUserMacroFlag
Summary: NullPointerException at org.netbeans.modules.cnd.makeproject.api.configuratio...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-10 22:29 UTC by Exceptions Reporter
Modified: 2016-03-12 05:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 222952


Attachments
stacktrace (1.32 KB, text/plain)
2016-03-10 22:29 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-03-10 22:29:39 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 10

User Comments:
GUEST: Switching between configurations each configured with different toolchains




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.makeproject.api.configurations.CCCompilerConfiguration.getUserMacroFlag(CCCompilerConfiguration.java:314)
   at org.netbeans.modules.cnd.makeproject.api.configurations.CCCompilerConfiguration.getPreprocessorOptions(CCCompilerConfiguration.java:258)
   at org.netbeans.modules.cnd.makeproject.NativeProjectProvider.checkConfigurationChangedWorker(NativeProjectProvider.java:527)
   at org.netbeans.modules.cnd.makeproject.NativeProjectProvider.checkConfigurationChanged(NativeProjectProvider.java:414)
   at org.netbeans.modules.cnd.makeproject.NativeProjectProvider.propertyChange(NativeProjectProvider.java:590)
   at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
Comment 1 Exceptions Reporter 2016-03-10 22:29:41 UTC
Created attachment 158817 [details]
stacktrace
Comment 2 Alexander Simon 2016-03-11 08:26:56 UTC
Investigation:
Apparently one of the tool collections is broken. C++ tool descriptor is invalid.
Comment 3 Alexander Simon 2016-03-11 08:31:29 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/6a857f0ed8e9
Comment 4 Quality Engineering 2016-03-12 05:09:30 UTC
Integrated into 'main-silver', will be available in build *201603120306* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6a857f0ed8e9
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #258314 - NullPointerException at org.netbeans.modules.cnd.makeproject.api.configurations.CCCompilerConfiguration.getUserMacroFlag
- avoid NPE in case tool collection is broken.