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 194025 - [70cat] NullPointerException at javax.swing.plaf.basic.BasicTextUI.viewToModel
Summary: [70cat] NullPointerException at javax.swing.plaf.basic.BasicTextUI.viewToModel
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 18:18 UTC by aldobrucale
Modified: 2011-01-09 06:20 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175565


Attachments
stacktrace (2.39 KB, text/plain)
2011-01-04 18:18 UTC, aldobrucale
Details
stacktrace (2.39 KB, text/plain)
2011-01-07 09:34 UTC, vince_soleil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2011-01-04 18:18:43 UTC
This bug was originally marked as duplicate of bug 193545, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build nbms-and-javadoc-6415-on-110103)
VM: OpenJDK Client VM, 19.0-b09, OpenJDK Runtime Environment, 1.6.0_20-b20
OS: Linux

User Comments:
tboudreau: Randomly clicking with NB hanging

aldobrucale: keeping ctrl-z pressed in java source file




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1106)
   at javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1079)
   at javax.swing.text.JTextComponent.viewToModel(JTextComponent.java:1432)
   at org.netbeans.lib.editor.hyperlink.HyperlinkOperation.keyPressed(HyperlinkOperation.java:385)
   at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
   at java.awt.AWTEventMulticaster.keyPressed(AWTEventMulticaster.java:249)
Comment 1 aldobrucale 2011-01-04 18:18:46 UTC
Created attachment 104704 [details]
stacktrace
Comment 2 vince_soleil 2011-01-07 09:34:51 UTC
Created attachment 104779 [details]
stacktrace

In groovy file, replace a word in a literal String
Comment 3 David Strupl 2011-01-07 09:49:09 UTC
Jan, can you please have a look at this? I am passing this to you since you fixed the very similar bug 193545. Thanks for looking at this one as well.
Comment 4 Jan Lahoda 2011-01-07 10:44:45 UTC
The original fix was not defensive enough, lets try this:
http://hg.netbeans.org/jet-main/rev/d04fa0ce123c
Comment 5 Quality Engineering 2011-01-09 06:20:45 UTC
Integrated into 'main-golden', will be available in build *201101090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d04fa0ce123c
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #194025: result of j.a.Component.getMousePosition() can differ when called several times in row.