This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201705260001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.131-b11, Java(TM) SE Runtime Environment, 1.8.0_131-b11 OS: Windows 7 User Comments: muellermi: start NB Stacktrace: 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)
Created attachment 164412 [details] stacktrace
Created attachment 164413 [details] stacktrace Start NB
Created attachment 164414 [details] stacktrace switching to other source file
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=229278
Created attachment 164449 [details] stacktrace placed the cursor mouse over a collapsed javadoc block
Created attachment 164450 [details] stacktrace tried to delete blank lines from a java source file in git source control
Created attachment 164456 [details] stacktrace placed the mouse cursor over a collapsed block of code
Created attachment 164520 [details] stacktrace Open class file from library
Created attachment 164527 [details] stacktrace opened class
Created attachment 164528 [details] stacktrace happens when hovering mouse over collapsed javadoc
This bug occurs every few minutes or more. Thus I increased priority to P2. Might be better P1?
(In reply to muellermi from comment #11) It's very annoying but doesn't result in data loss so P2 is appropriate.
If this bug occurs and you send the bug report, it will occur again and you'll get stuck in an endless loop. Workarround: Cancel exeption reporter twice and then it is finally possible to edit a source file.
Created attachment 164689 [details] stacktrace Nothing out of ordinary
I've got the exception several times already, usually at startup, so I'd guess it has to do with some tasks performed during/after deserialization. It's obviously happeding to the active window: When I get the exception, it helps to close the active window to be able to work with NB. So it's probably caused by code during setting the active TopWindow after deserialization.
Created attachment 164721 [details] stacktrace Just scrolling a Java file
Created attachment 164749 [details] stacktrace Just scrolling a Java file
*** Bug 270967 has been marked as a duplicate of this bug. ***
*** Bug 270854 has been marked as a duplicate of this bug. ***
*** Bug 270762 has been marked as a duplicate of this bug. ***
*** Bug 270761 has been marked as a duplicate of this bug. ***
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/a4159dc167d8
Integrated into 'main-silver', will be available in build *201707220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a4159dc167d8 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #270745 - NullPointerException at org.netbeans.api.editor.caret.EditorCaret.maybeSaveCaretOffset - fixed.
interestingly, with Java 9 this doesn't happen: Product Version: NetBeans IDE Dev (Build 201707050001) Java: 9-internal; OpenJDK 64-Bit Server VM 9-internal+0-adhoc.alied.jdk9 Runtime: OpenJDK Runtime Environment 9-internal+0-adhoc.alied.jdk9 System: Linux version 4.11.11 running on amd64; UTF-8; en_US (nb) User directory: /home/alied/.netbeans/dev Cache directory: /home/alied/.cache/netbeans/dev