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 75228 - NPE after file save
Summary: NPE after file save
Status: RESOLVED DUPLICATE of bug 117317
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: RANDOM
: 76882 77829 83045 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-19 13:40 UTC by Jaromir Uhrik
Modified: 2007-11-05 13:44 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 Jaromir Uhrik 2006-04-19 13:40:36 UTC
[NB 5.5 build #200604190200]
I saved the form file and the following exception appeared in exception dialog
(it is not reproducible, just appeared once):

ava.lang.NullPointerException
	at javax.swing.text.View.modelToView(View.java:649)
	at org.netbeans.editor.view.spi.LockView.modelToView(LockView.java:406)
	at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1440)
	at javax.swing.plaf.basic.BasicTextUI.damageRange(BasicTextUI.java:1085)
	at javax.swing.plaf.basic.BasicTextUI.damageRange(BasicTextUI.java:1064)
	at
org.netbeans.lib.editor.hyperlink.HyperlinkOperation$1$1.run(HyperlinkOperation.java:277)
	at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1126)
[catch] at
org.netbeans.lib.editor.hyperlink.HyperlinkOperation$1.run(HyperlinkOperation.java:272)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jiri Prox 2006-05-26 09:40:49 UTC
*** Issue 76882 has been marked as a duplicate of this issue. ***
Comment 2 Marian Mirilovic 2006-06-13 15:24:33 UTC
*** Issue 77829 has been marked as a duplicate of this issue. ***
Comment 3 Miloslav Metelka 2006-06-28 15:24:58 UTC
Unfortunately I'm unable to reproduce.
Anyway looks like the 's0' variable in View.modelToView() is possibly null for
some reason i.e. the line
  Shape s0 = modelToView(p0, a, b0);
returns null. I've looked to the impl in GapBoxView and it may return null in
some generally illegal states (in a similar way like BoxView in swing does) but
we should find the real culprit first by being able to reproduce the problem first.
Comment 4 Jiri Prox 2006-08-21 09:20:24 UTC
*** Issue 83045 has been marked as a duplicate of this issue. ***
Comment 5 Vitezslav Stejskal 2007-10-10 17:34:32 UTC
Should already be fixed.

*** This issue has been marked as a duplicate of 117317 ***