Null pointer exception in jdk 1.7
953423Aug 2 2012 — edited Sep 21 2012Hi,
I am getting below exception while i am pressing the button to perform some action (moving from one page to other).
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:357)
at javax.swing.KeyboardManager.registerKeyStroke(KeyboardManager.java:104)
at javax.swing.JComponent.registerWithKeyboardManager(JComponent.java:2198)
at javax.swing.JComponent.registerWithKeyboardManager(JComponent.java:2123)
at javax.swing.JComponent.componentInputMapChanged(JComponent.java:2193)
at javax.swing.ComponentInputMap.put(ComponentInputMap.java:94)
at javax.swing.LookAndFeel.loadKeyBindings(LookAndFeel.java:439)
at javax.swing.plaf.basic.BasicRootPaneUI.updateDefaultButtonBindings(BasicRootPaneUI.java:150)
at javax.swing.plaf.basic.BasicRootPaneUI.propertyChange(BasicRootPaneUI.java:164)
at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
at java.awt.Component.firePropertyChange(Component.java:8382)
at javax.swing.JRootPane.setDefaultButton(JRootPane.java:802)
The issue is the error is not coming regularly. But It comes. In jdk 1.6 with the same code i never faced this issue.
Thanks