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 224087 - NullPointerException at javax.swing.JTextPane.getLogicalStyle
Summary: NullPointerException at javax.swing.JTextPane.getLogicalStyle
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-20 13:50 UTC by Jiri Prox
Modified: 2012-12-21 17:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 196799


Attachments
stacktrace (2.67 KB, text/plain)
2012-12-20 13:50 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-12-20 13:50:33 UTC
Build: NetBeans IDE Dev (Build 201212190001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18
OS: Windows 7

User Comments:
jiriprox: NPE when setting keymap propery of the JTextArea to <none>




Stacktrace: 
java.lang.NullPointerException
   at javax.swing.JTextPane.getLogicalStyle(JTextPane.java:330)
   at sun.reflect.GeneratedMethodAccessor263.invoke(GeneratedMethodAccessor263.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:601)
   at org.netbeans.modules.form.RADProperty.getTargetValue(RADProperty.java:121)
   at org.netbeans.modules.form.FormProperty.checkCurrentValue(FormProperty.java:988)
Comment 1 Jiri Prox 2012-12-20 13:50:35 UTC
Created attachment 129582 [details]
stacktrace
Comment 2 Tomas Pavek 2012-12-21 17:11:30 UTC
Cannot reproduce, setting keymap to none does nothing to me. The exception means there was no document in the JTextPane component, which I have no idea how it could happen. There is no way to set null document directly in GUI builder.