EmuNewz Network
java.lang.NullPointerException - Printable Version

+- EmuNewz Network (https://www.emunewz.net/forum)
+-- Forum: PSP Emulation (https://www.emunewz.net/forum/forumdisplay.php?fid=191)
+--- Forum: JPCSP Official Forum (https://www.emunewz.net/forum/forumdisplay.php?fid=51)
+---- Forum: JPCSP builds and releases (https://www.emunewz.net/forum/forumdisplay.php?fid=53)
+---- Thread: java.lang.NullPointerException (/showthread.php?tid=158894)



java.lang.NullPointerException - lazerunicornz - 03-11-2014

Everytime I try to open the settings, I get this error. I'm running the latest release with the latest java.

Running Jpcsp 64bit...
Exception in thread "GUI" java.lang.NullPointerException
at com.sun.java.swing.plaf.windows.XPStyle.getTypeEnumName(Unknown Sourc
e)
at com.sun.java.swing.plaf.windows.XPStyle.getBorder(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPBorderValue.getX
PValue(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsLookAndFeel$XPValue.createValu
e(Unknown Source)
at javax.swing.UIDefaults.getFromHashtable(Unknown Source)
at javax.swing.UIDefaults.get(Unknown Source)
at javax.swing.MultiUIDefaults.get(Unknown Source)
at javax.swing.UIDefaults.getBorder(Unknown Source)
at javax.swing.UIManager.getBorder(Unknown Source)
at javax.swing.border.TitledBorder.getBorder(Unknown Source)
at javax.swing.border.TitledBorder.getBorderInsets(Unknown Source)
at javax.swing.border.AbstractBorder.getBorderInsets(Unknown Source)
at javax.swing.JComponent.getInsets(Unknown Source)
at javax.swing.GroupLayout.adjustSize(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedPreferredSi
ze(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize
(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(Unknown
Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ParallelGroup.calculateMinimumSize(Unknown So
urce)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ParallelGroup.calculateMinimumSize(Unknown So
urce)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateMinimumSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout.calculateAutopadding(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.minimumLayoutSize(Unknown Source)
at java.awt.Container.minimumSize(Unknown Source)
at java.awt.Container.getMinimumSize(Unknown Source)
at javax.swing.JComponent.getMinimumSize(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.calculateSi
ze(Unknown Source)
at javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout.minimumLayo
utSize(Unknown Source)
at java.awt.Container.minimumSize(Unknown Source)
at java.awt.Container.getMinimumSize(Unknown Source)
at javax.swing.JComponent.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateNonlinkedMinimumSize
(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculateMinimumSize(Unknown
Source)
at javax.swing.GroupLayout$Spring.getMinimumSize(Unknown Source)
at javax.swing.GroupLayout$ComponentSpring.calculatePreferredSize(Unknow
n Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout$Group.getSpringSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculateSize(Unknown Source)
at javax.swing.GroupLayout$Group.calculatePreferredSize(Unknown Source)
at javax.swing.GroupLayout$Spring.getPreferredSize(Unknown Source)
at javax.swing.GroupLayout.calculateAutopadding(Unknown Source)
at javax.swing.GroupLayout.prepare(Unknown Source)
at javax.swing.GroupLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at javax.swing.JRootPane$RootLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at javax.swing.JComponent.getPreferredSize(Unknown Source)
at java.awt.BorderLayout.preferredLayoutSize(Unknown Source)
at java.awt.Container.preferredSize(Unknown Source)
at java.awt.Container.getPreferredSize(Unknown Source)
at java.awt.Window.pack(Unknown Source)
at jpcsp.GUI.SettingsGUI.initComponents(SettingsGUI.java:1225)
at jpcsp.GUI.SettingsGUI.<init>(SettingsGUI.java:63)
at jpcsp.MainGUI.ConfigMenuActionPerformed(MainGUI.java:1735)
at jpcsp.MainGUI.access$3600(MainGUI.java:133)
at jpcsp.MainGUI$38.actionPerformed(MainGUI.java:785)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)


RE: java.lang.NullPointerException - lazerunicornz - 04-22-2014

After experimentation, Build 3409 was the last working build before I received that error every time I want to change my settings. Does it narrow down what might be causing it?


RE: java.lang.NullPointerException - Hykem - 04-23-2014

Could you please try deleting your Settings.properties file? I'm guessing some recent settings (probably PSP model changing) are conflicting with your old configuration.


RE: java.lang.NullPointerException - lazerunicornz - 04-24-2014

That was one of the first things I tried after researching the problem, but the same thing still happens.


RE: java.lang.NullPointerException - gid15 - 04-24-2014

Are you using a special theme under Windows? I found other users reporting the same exception using Netbeans with custom Windows themes...


RE: java.lang.NullPointerException - lazerunicornz - 04-24-2014

That was it, I tried it on a default theme and there's no problem anymore. Thank you.