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 252483 - IllegalArgumentException: language cannot be null
Summary: IllegalArgumentException: language cannot be null
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: ilia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 14:25 UTC by Alexander Simon
Modified: 2015-06-25 08:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 217405


Attachments
stacktrace (3.57 KB, text/plain)
2015-05-19 14:25 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-05-19 14:25:03 UTC
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)
Comment 1 Alexander Simon 2015-05-19 14:25:05 UTC
Created attachment 153749 [details]
stacktrace
Comment 2 Alexander Simon 2015-05-19 15:05:15 UTC
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.
Comment 3 ilia 2015-06-24 16:12:39 UTC
Fixed in:
  http://hg.netbeans.org/cnd-main/rev/8866e062ec58
Comment 4 ilia 2015-06-25 08:48:16 UTC
The changeset above has wrong commit message.
Should be:
  "Fixed Bug #252483 - IllegalArgumentException: language cannot be null"