java.lang.NullPointerException at org.netbeans.api.editor.caret.EditorCaret.maybeSaveCaretOffset(EditorCaret.java:1071) at org.netbeans.api.editor.caret.EditorCaret.update(EditorCaret.java:2000) at org.netbeans.api.editor.caret.EditorCaret.access$400(EditorCaret.java:169) at org.netbeans.api.editor.caret.EditorCaret$7.run(EditorCaret.java:1945) at org.netbeans.api.editor.caret.EditorCaret.dispatchUpdate(EditorCaret.java:1954) at org.netbeans.api.editor.caret.EditorCaret.access$2500(EditorCaret.java:169) at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.updateAndFireChange(EditorCaret.java:2734) at org.netbeans.api.editor.caret.EditorCaret$ListenerImpl.atomicUnlock(EditorCaret.java:2699) at org.netbeans.editor.BaseDocument.fireAtomicUnlock(BaseDocument.java:1932) at org.netbeans.editor.BaseDocument.atomicUnlockImpl(BaseDocument.java:1811) at org.netbeans.editor.BaseDocument.atomicUnlockImpl(BaseDocument.java:1800) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:376) at org.netbeans.editor.BaseKit$DeleteCharAction.actionPerformed(BaseKit.java:2176) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:347) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1663) at javax.swing.JComponent.processKeyBinding(JComponent.java:2882) at javax.swing.JComponent.processKeyBindings(JComponent.java:2929) at javax.swing.JComponent.processKeyEvent(JComponent.java:2845) at java.awt.Component.processEvent(Component.java:6310) at java.awt.Container.processEvent(Container.java:2236) at java.awt.Component.dispatchEventImpl(Component.java:4889) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1954) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:806) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1074) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:945) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:771) at java.awt.Component.dispatchEventImpl(Component.java:4760) at java.awt.Container.dispatchEventImpl(Container.java:2294) at java.awt.Window.dispatchEventImpl(Window.java:2746) at java.awt.Component.dispatchEvent(Component.java:4711) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) at java.awt.EventQueue$4.run(EventQueue.java:731) at java.awt.EventQueue$4.run(EventQueue.java:729) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)