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 194310 - NPE in org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1
Summary: NPE in org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-01-13 15:33 UTC by Alexander Pepin
Modified: 2011-01-18 06:11 UTC (History)
1 user (show)

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 Alexander Pepin 2011-01-13 15:33:20 UTC
Several CND editor automatic tests found that NPE in IDE log:

SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1
java.lang.NullPointerException
	at org.netbeans.modules.editor.lib2.view.HighlightsViewUtils.findAffectedLayoutIndex(HighlightsViewUtils.java:103)
	at org.netbeans.modules.editor.lib2.view.EditorBoxViewChildren.setVisualIndexAndOffset(EditorBoxViewChildren.java:216)
	at org.netbeans.modules.editor.lib2.view.EditorBoxViewChildren.replace(EditorBoxViewChildren.java:133)
	at org.netbeans.modules.editor.lib2.view.EditorBoxView.replace(EditorBoxView.java:289)
	at org.netbeans.modules.editor.lib2.view.ViewReplace.replaceViews(ViewReplace.java:132)
	at org.netbeans.modules.editor.lib2.view.ViewBuilder.replaceAndRepaintViews(ViewBuilder.java:535)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates.buildViews(ViewUpdates.java:147)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates.checkRebuild(ViewUpdates.java:516)
	at org.netbeans.modules.editor.lib2.view.ViewUpdates$FactoriesListener.viewFactoryChanged(ViewUpdates.java:542)
	at org.netbeans.modules.editor.lib2.view.EditorViewFactory.fireEvent(EditorViewFactory.java:224)
	at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1.run(HighlightsViewFactory.java:119)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1419)
	at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1.run(HighlightsViewFactory.java:125)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1424)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1968)
Comment 1 Vladimir Voskresensky 2011-01-14 11:43:36 UTC
Mila, please, have a look at this regression. It cause failing Solaris Studio IDE tests
Comment 2 Miloslav Metelka 2011-01-17 13:57:19 UTC
Hopefully fixed.
http://hg.netbeans.org/jet-main/rev/0d1769ce36e3

Vladimir, if it would still fail, could you please direct me how to run the tests for Solaris Studio IDE? Thanks.
Comment 3 Vladimir Voskresensky 2011-01-17 15:10:07 UTC
Thanks Mila!
If change would be propagated into cnd-main today we will see tomorrow a result.
Comment 4 Miloslav Metelka 2011-01-17 17:28:48 UTC
Additional fix for DocumentView.getPreferredSpan():
http://hg.netbeans.org/jet-main/rev/9ea24e7abbf1
Comment 5 Quality Engineering 2011-01-18 06:11:46 UTC
Integrated into 'main-golden', will be available in build *201101180000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0d1769ce36e3
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #194310 - NPE in org.netbeans.modules.editor.lib2.view.HighlightsViewFactory$1.