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 139372 - AssertionError on empty cpp file
Summary: AssertionError on empty cpp file
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 11:17 UTC by nnnnnk
Modified: 2008-07-09 15:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nnnnnk 2008-07-09 11:17:00 UTC
java.lang.AssertionError: start > end:0, -1
	at org.netbeans.cnd.api.lexer.CndTokenUtilities.processTokens(CndTokenUtilities.java:70)
	at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.getIdentifierReferences(FileReferencesImpl.java:143)
	at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:125)
	at org.netbeans.modules.cnd.highlight.error.IdentifierErrorProvider.getErrors(IdentifierErrorProvider.java:75)
	at org.netbeans.modules.cnd.api.model.syntaxerr.CsmErrorProvider$Merger.getErrors(CsmErrorProvider.java:69)
	at org.netbeans.modules.cnd.highlight.error.HighlightProvider.addAnnotations(HighlightProvider.java:130)
	at org.netbeans.modules.cnd.highlight.error.HighlightProvider.update(HighlightProvider.java:96)
	at org.netbeans.modules.cnd.highlight.error.HighlightProviderTaskFactory$1.run(HighlightProviderTaskFactory.java:70)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$3.run(CsmFileTaskFactory.java:257)
	at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:284)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Vladimir Voskresensky 2008-07-09 11:20:36 UTC
my fault
Comment 2 Vladimir Voskresensky 2008-07-09 12:15:27 UTC
fixed:
http://hg.netbeans.org/main?cmd=changeset;node=8c4cec757465
Comment 3 Quality Engineering 2008-07-09 15:42:03 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #309 build
Changeset: http://hg.netbeans.org/main/rev/8c4cec757465
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed IZ#139372: AssertionError on empty cpp file