java.lang.NullPointerException at org.netbeans.lib.editor.bookmarks.actions.ToggleBookmarkAction$BookmarkButtonModel.rebuild(ToggleBookmarkAction.java:200) at org.netbeans.lib.editor.bookmarks.actions.ToggleBookmarkAction$BookmarkButtonModel.propertyChange(ToggleBookmarkAction.java:159) at org.openide.util.WeakListenerImpl$PropertyChange.propertyChange(WeakListenerImpl.java:161) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270) at java.awt.Component.firePropertyChange(Component.java:7172) at org.openide.text.QuietEditorPane.firePropertyChange(QuietEditorPane.java:149) at javax.swing.text.JTextComponent.setCaret(JTextComponent.java:560) at org.openide.text.QuietEditorPane.setCaret(QuietEditorPane.java:166) at org.netbeans.editor.BaseTextUI.uninstallUI(BaseTextUI.java:251) at javax.swing.JComponent.setUI(JComponent.java:646) at javax.swing.text.JTextComponent.setUI(JTextComponent.java:298) at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:308) at org.netbeans.editor.BaseKit.deinstall(BaseKit.java:683) at javax.swing.JEditorPane.setEditorKit(JEditorPane.java:955) [catch] at org.openide.text.CloneableEditor$1.run(CloneableEditor.java:133) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)