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 158103 - NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Summary: NullPointerException at javax.swing.text.JTextComponent.getCaretPosition
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
: 160814 168158 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-06 19:44 UTC by drampulla
Modified: 2009-07-15 14:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 137219


Attachments
stacktrace (4.25 KB, text/plain)
2009-02-06 19:44 UTC, drampulla
Details

Note You need to log in before you can comment on or make changes to this bug.
Description drampulla 2009-02-06 19:44:17 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86

User Comments:
drampulla: Editing a swing panel.

GUEST: Trying to save the file.

drampulla: Editing a swing panel.



Stacktrace: 
java.lang.NullPointerException
        at javax.swing.text.JTextComponent.getCaretPosition(JTextComponent.java:1664)
        at javax.swing.text.JTextComponent$AccessibleJTextComponent.getCaretPosition(JTextComponent.java:2832)
        at javax.swing.text.JTextComponent$AccessibleJTextComponent.<init>(JTextComponent.java:2533)
        at javax.swing.JEditorPane$AccessibleJEditorPane.<init>(JEditorPane.java:1689)
        at javax.swing.JEditorPane.getAccessibleContext(JEditorPane.java:1669)
        at org.netbeans.modules.form.RADComponent.createAccessibilityProperties(RADComponent.java:1366)
Comment 1 drampulla 2009-02-06 19:44:26 UTC
Created attachment 76684 [details]
stacktrace
Comment 2 Tomas Pavek 2009-02-18 17:52:14 UTC
It's a bit strange that JTextComponent throws such an exception, but according to the stacktrace this happened when the
GUI form was being saved - in which case this call is all useless anyway and can be avoided.

Integrated into main:
http://hg.netbeans.org/main/rev/36e7fd620ee9
Comment 3 Quality Engineering 2009-02-22 07:54:07 UTC
Integrated into 'main-golden', will be available in build *200902220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/36e7fd620ee9
User: Tomas Pavek <tpavek@netbeans.org>
Log: #158103: don't force creation of properties when component is being saved
Comment 4 Jan Stola 2009-03-24 16:24:32 UTC
*** Issue 160814 has been marked as a duplicate of this issue. ***
Comment 5 Jan Stola 2009-07-15 14:42:06 UTC
*** Issue 168158 has been marked as a duplicate of this issue. ***