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 163994

Summary: NullPointerException at org.netbeans.modules.web.core.syntax.EmbeddedSectionsHighlighting$Highlights.moveNext
Product: javaee Reporter: David Konecny <dkonecny>
Component: JSPAssignee: Marek Fukala <mfukala>
Status: RESOLVED FIXED    
Severity: blocker CC: jtulach
Priority: P3 Keywords: ERGONOMICS
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=150259
Issue Type: DEFECT Exception Reporter: 150259
Attachments: stacktrace

Description David Konecny 2009-04-29 02:10:02 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-23-generic, i386

User Comments:
dkonecny: Start NB6.7 with fresh userdir and open web.jspparser module and then open one of its test files - /web.jspparser/test/unit/data/project2/web/basic.jspx That will activate J2EE feature but file will not have coloring and you get this exception. Restarting IDE resolves the problem so it looks like Ergonomics issue.

GUEST: Opening a JSP File (note: as part of the opening of the file, Java EE was activated)



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.core.syntax.EmbeddedSectionsHighlighting$Highlights.moveNext(EmbeddedSectionsHighlighting.java:197)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlightsImpl(OffsetsBag.java:723)
        at org.netbeans.spi.editor.highlighting.support.OffsetsBag.addAllHighlights(OffsetsBag.java:184)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.updateCache(CompoundHighlightsContainer.java:302)
        at org.netbeans.modules.editor.lib2.highlighting.CompoundHighlightsContainer.getHighlights(CompoundHighlightsContainer.java:170)
        at org.netbeans.editor.HighlightingDrawLayer.processOffset(HighlightingDrawLayer.java:618)
Comment 1 David Konecny 2009-04-29 02:10:11 UTC
Created attachment 81144 [details]
stacktrace
Comment 2 David Konecny 2009-04-29 02:14:25 UTC
Ergonomics issue. Worth to investigate why something was not properly activated after feature was enabled. Not sure if
Jarda or Marek should be assignee.
Comment 3 Marek Fukala 2009-04-30 10:30:38 UTC
fixed in web-main#456aed020962 but not sure how exactly this happened.
Comment 4 Quality Engineering 2009-04-30 18:54:01 UTC
Integrated into 'main-golden', will be available in build *200904301401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/456aed020962
User: Marek Fukala <mfukala@netbeans.org>
Log: #163994 - NullPointerException at org.netbeans.modules.web.core.syntax.EmbeddedSectionsHighlighting$Highlights.moveNext