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.
Build: NetBeans IDE Dev (Build 20150519-2f9207cbd5ac) VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26 OS: SunOS User Comments: alexvsimon: click button in macro expansion view Stacktrace: java.lang.IllegalArgumentException: language cannot be null at org.netbeans.lib.lexer.TokenHierarchyOperation.<init>(TokenHierarchyOperation.java:170) at org.netbeans.api.lexer.TokenHierarchy.create(TokenHierarchy.java:163) at org.netbeans.modules.cnd.editor.parser.impl.FoldingParserService.parse(FoldingParserService.java:86) at org.netbeans.modules.cnd.editor.folding.CppFile.startParsing(CppFile.java:187) at org.netbeans.modules.cnd.editor.folding.CppFile.startParsing(CppFile.java:135) at org.netbeans.modules.cnd.editor.folding.CppMetaModel$2.run(CppMetaModel.java:193)
Created attachment 153749 [details] stacktrace
My steps to reproduce: - open OpenJDK project - open file hotspot/src/share/vm/opto/output.cpp - goto line: _node_bundling_base = NEW_ARENA_ARRAY(compile.comp_arena(), Bundle, node_max); it is about 1783 line. - open macro expansion view - set "expand whole dodument" Try select some other line in main document and macro expansion document and switch "Synchronize caret". After couple selection and switching the exception is thrown.
Fixed in: http://hg.netbeans.org/cnd-main/rev/8866e062ec58
The changeset above has wrong commit message. Should be: "Fixed Bug #252483 - IllegalArgumentException: language cannot be null"