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 165654 - NullPointerException at javax.swing.text.JTextComponent.getText
Summary: NullPointerException at javax.swing.text.JTextComponent.getText
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-20 21:30 UTC by Exceptions Reporter
Modified: 2010-08-30 10:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 136348


Attachments
stacktrace (2.62 KB, text/plain)
2009-05-20 21:30 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2009-05-20 21:30:02 UTC
Build: NetBeans IDE Dev (Build 200905090201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Linux, 2.6.28-11-generic, amd64

User Comments:
kotetsu: abriendo la vista dise�o de un japplet

wozzat: Tried to set the document property from from a JTextField to <none> using the properties window.



Stacktrace: 
java.lang.IllegalStateException: Error getting property value
        at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:871)
        at org.openide.explorer.propertysheet.PropUtils.getPropertyEditor(PropUtils.java:795)
        at org.openide.explorer.propertysheet.SheetTable.onCustomEditorButton(SheetTable.java:840)
        at org.openide.explorer.propertysheet.SheetTable.processMouseEvent(SheetTable.java:703)
        at java.awt.Component.processEvent(Component.java:5981)
        at java.awt.Container.processEvent(Container.java:2041)
Comment 1 Exceptions Reporter 2009-05-20 21:30:17 UTC
Created attachment 82512 [details]
stacktrace
Comment 2 Jan Stola 2009-05-21 10:20:42 UTC
Reproducible.

Steps to reproduce:
1. Set document property of JTextField to <none>.
2. Click on a text property (in property sheet).
   => exception is thrown.

Lowering priority because this use-case doesn't have sense, i.e., it doesn't have sense to set document to <none>.
Comment 3 Jan Stola 2010-08-30 10:12:52 UTC
Fixed.

Modified file: http://hg.netbeans.org/cdev/rev/89298b999f96