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 247603 - NullPointerException at org.netbeans.modules.cnd.apt.support.APTExpandedStream.toText
Summary: NullPointerException at org.netbeans.modules.cnd.apt.support.APTExpandedStrea...
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 17:35 UTC by Exceptions Reporter
Modified: 2016-09-01 14:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 212339


Attachments
stacktrace (2.58 KB, text/plain)
2014-09-30 17: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 2014-09-30 17:35:28 UTC
This issue was reported manually by alexvsimon.
It already has 2 duplicates 


Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: OpenJDK 64-Bit Server VM, 24.65-b04, OpenJDK Runtime Environment, 1.7.0_65-b32
OS: Linux

User Comments:
GUEST: Send a similar report seconds ago, problem seems to be related to expanding the macro 'declareRunTimeSelectionTable' with the following call:

        declareRunTimeSelectionTable
        (
            autoPtr,
            reactionModel,
            dictionary,
            (
                const dictionary& reactionProperties,
                const reactions& reactionMixture,
                const word& reactionName
            ),
            (reactionProperties, reactionMixture, reactionName)
        );

GUEST: oping for Macro Expansion in combination with OpenFoam RunTimeSelection mechanism




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.cnd.apt.support.APTExpandedStream.toText(APTExpandedStream.java:610)
   at org.netbeans.modules.cnd.apt.support.APTExpandedStream.stringizeParam(APTExpandedStream.java:601)
   at org.netbeans.modules.cnd.apt.support.APTExpandedStream.subsituteParams(APTExpandedStream.java:490)
   at org.netbeans.modules.cnd.apt.support.APTExpandedStream.createMacroBodyWrapper(APTExpandedStream.java:235)
   at org.netbeans.modules.cnd.apt.support.APTMacroExpandedStream.createMacroBodyWrapper(APTMacroExpandedStream.java:73)
   at org.netbeans.modules.cnd.apt.support.APTExpandedStream.pushMacroExpanding(APTExpandedStream.java:169)
Comment 1 Exceptions Reporter 2014-09-30 17:35:29 UTC
Created attachment 149627 [details]
stacktrace
Comment 2 petrk 2016-09-01 14:46:41 UTC
It is already irrelevant as we now use another preprocessor by default