mdarifmustafa / xswingx

Automatically exported from code.google.com/p/xswingx
0 stars 1 forks source link

Nullpointerexception at instantiating a JXSearchField #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create new JXTextField
JXSearchField searchField = new JXSearchField();

What is the expected output? What do you see instead?
Expect a SearchField in my JPanel. Instead -> NullpointerException

What version of the product are you using? On what operating system?
xswingx-0.2 + swingx-1.0 on Windows XP

Please provide any additional information below.
Causing Code:
JXSearchField searchField = new JXSearchField();

Stacktrace:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at org.jdesktop.xswingx.JXSearchField.customSetUIProperty
(JXSearchField.java:748)
    at org.jdesktop.xswingx.JXSearchField.customSetUIProperty
(JXSearchField.java:726)
    at org.jdesktop.xswingx.plaf.SearchFieldUI.installDefaults
(SearchFieldUI.java:211)
    at org.jdesktop.xswingx.plaf.SearchFieldUI.installUI
(SearchFieldUI.java:72)
    at javax.swing.JComponent.setUI(JComponent.java:673)
    at javax.swing.text.JTextComponent.setUI(JTextComponent.java:322)
    at org.jdesktop.xswingx.plaf.TextUIWrapper.replaceUIIfNeeded
(TextUIWrapper.java:70)
    at 
org.jdesktop.xswingx.plaf.TextUIWrapper$DefaultWrapper.replaceUIIfNeeded
(TextUIWrapper.java:167)
    at org.jdesktop.xswingx.plaf.TextUIWrapper.install
(TextUIWrapper.java:51)
    at 
org.jdesktop.xswingx.JXSearchField.setUseNativeSearchFieldIfPossible
(JXSearchField.java:516)
    at org.jdesktop.xswingx.JXSearchField.<init>
(JXSearchField.java:173)
    at org.jdesktop.xswingx.JXSearchField.<init>
(JXSearchField.java:161)

Original issue reported on code.google.com by christof...@gtempaccount.com on 4 Nov 2009 at 3:05

GoogleCodeExporter commented 8 years ago
I saw, that this issue was already posted at point 8. I patched it and now it 
works 
fine. 
Do you plan a new release where this issue will be fixed? When?

Original comment by christof...@gtempaccount.com on 5 Nov 2009 at 1:43

GoogleCodeExporter commented 8 years ago
Duplicates issue 8. Duplicates issue 9.

Original comment by ge0ffrey.spam@gmail.com on 22 Dec 2009 at 3:32

GoogleCodeExporter commented 8 years ago
Patched in issue 18

Original comment by ge0ffrey.spam@gmail.com on 23 Dec 2009 at 9:38