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.

Bug 240760 - NullPointerException at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$CommitFolds.run
Summary: NullPointerException at org.netbeans.modules.java.editor.fold.JavaElementFold...
Status: RESOLVED DUPLICATE of bug 240893
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 241047 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-21 12:13 UTC by Jiri Prox
Modified: 2014-07-15 21:00 UTC (History)
22 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206797


Attachments
stacktrace (1.55 KB, text/plain)
2014-01-21 12:13 UTC, Jiri Prox
Details
stacktrace (1.55 KB, text/plain)
2014-01-23 16:48 UTC, gholmer
Details
stacktrace (1.55 KB, text/plain)
2014-01-25 02:43 UTC, manikantannaren
Details
stacktrace (1.55 KB, text/plain)
2014-01-27 11:19 UTC, aldobrucale
Details
stacktrace (1.55 KB, text/plain)
2014-01-28 13:58 UTC, host
Details
stacktrace (1.55 KB, text/plain)
2014-01-28 14:01 UTC, host
Details
stacktrace (1.55 KB, text/plain)
2014-01-29 08:58 UTC, Martin Kanak
Details
stacktrace (1.55 KB, text/plain)
2014-01-29 12:43 UTC, aldobrucale
Details
stacktrace (5.47 KB, text/plain)
2014-01-29 15:52 UTC, aldobrucale
Details
stacktrace (1.55 KB, text/plain)
2014-01-29 19:37 UTC, michbarsinai
Details
stacktrace (1.55 KB, text/plain)
2014-01-29 19:40 UTC, michbarsinai
Details
stacktrace (1.55 KB, text/plain)
2014-01-31 07:22 UTC, adithyank
Details
stacktrace (1.55 KB, text/plain)
2014-01-31 10:28 UTC, ssazonov
Details
stacktrace (1.55 KB, text/plain)
2014-01-31 12:37 UTC, ssazonov
Details
stacktrace (1.55 KB, text/plain)
2014-02-01 14:19 UTC, manikantannaren
Details
stacktrace (1.55 KB, text/plain)
2014-02-01 15:01 UTC, adithyank
Details
stacktrace (1.55 KB, text/plain)
2014-02-01 15:04 UTC, adithyank
Details
stacktrace (1.55 KB, text/plain)
2014-02-02 02:37 UTC, manikantannaren
Details
stacktrace (1.55 KB, text/plain)
2014-02-03 09:46 UTC, palman
Details
stacktrace (1.55 KB, text/plain)
2014-02-04 04:19 UTC, michbarsinai
Details
stacktrace (3.88 KB, text/plain)
2014-02-04 11:10 UTC, aquaglia
Details
stacktrace (3.88 KB, text/plain)
2014-02-04 11:13 UTC, aquaglia
Details
stacktrace (1.55 KB, text/plain)
2014-02-04 17:16 UTC, athompson
Details
stacktrace (1.55 KB, text/plain)
2014-02-05 09:58 UTC, ssazonov
Details
stacktrace (1.55 KB, text/plain)
2014-02-05 12:22 UTC, Jiri Skrivanek
Details
stacktrace (1.55 KB, text/plain)
2014-02-06 19:34 UTC, gholmer
Details
stacktrace (1.55 KB, text/plain)
2014-02-06 22:31 UTC, ytn01
Details
stacktrace (1.55 KB, text/plain)
2014-02-07 11:34 UTC, kidnapper
Details
stacktrace (1.55 KB, text/plain)
2014-02-08 14:22 UTC, markee174
Details
stacktrace (1.55 KB, text/plain)
2014-02-08 17:19 UTC, host
Details
stacktrace (1.55 KB, text/plain)
2014-02-09 22:40 UTC, everflux
Details
stacktrace (1.55 KB, text/plain)
2014-02-11 14:55 UTC, Jiri Prox
Details
stacktrace (3.88 KB, text/plain)
2014-02-11 15:52 UTC, aquaglia
Details
stacktrace (1.55 KB, text/plain)
2014-02-13 15:46 UTC, Ondrej Vrabec
Details
stacktrace (1.55 KB, text/plain)
2014-02-16 04:25 UTC, mortoza
Details
stacktrace (1.55 KB, text/plain)
2014-02-19 03:22 UTC, mortoza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2014-01-21 12:13:15 UTC
Build: NetBeans IDE Dev (Build 20140121-66acce1f24d6)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b65, Java(TM) SE Runtime Environment, 1.8.0-ea-b123
OS: Windows 7

User Comments:
jiriprox: NPE after closing several files at once (html and javascript)




Stacktrace: 
java.lang.NullPointerException
   at java.util.Objects.requireNonNull(Objects.java:203)
   at java.util.Arrays$ArrayList.<init>(Arrays.java:3807)
   at java.util.Arrays.asList(Arrays.java:3794)
   at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$CommitFolds.run(JavaElementFoldManager.java:338)
   at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1391)
   at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$CommitFolds.run(JavaElementFoldManager.java:328)
Comment 1 Jiri Prox 2014-01-21 12:13:17 UTC
Created attachment 144194 [details]
stacktrace
Comment 2 gholmer 2014-01-23 16:48:55 UTC
Created attachment 144312 [details]
stacktrace

In a Subversion diff window (Subversion -> diff -> diff), selected some text on the "remotely modified" side of the diff.
Comment 3 manikantannaren 2014-01-25 02:43:05 UTC
Created attachment 144357 [details]
stacktrace

Started IDE
Project already opened
Clicked close icon of one of the editors.
Comment 4 Exceptions Reporter 2014-01-25 02:43:10 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206797
Comment 5 aldobrucale 2014-01-27 11:19:09 UTC
Created attachment 144404 [details]
stacktrace

closing all document windows
Comment 6 host 2014-01-28 13:58:10 UTC
Created attachment 144467 [details]
stacktrace

I opened the history of a SVN versioned file and then the latest revision of that file. Now in the compare editor I tried to mark a word with the mouse.
Comment 7 host 2014-01-28 14:01:10 UTC
Created attachment 144468 [details]
stacktrace

Closing several open file tabs in the editor (I guess).
Comment 8 Martin Kanak 2014-01-29 08:58:10 UTC
Created attachment 144505 [details]
stacktrace

Have some SVN project, open Subversion tab (invoke Subversion | Show Changes) and then delete the whole project -> exception
Comment 9 aldobrucale 2014-01-29 12:43:09 UTC
Created attachment 144531 [details]
stacktrace

just clicked in one of the editors in a diff view
Comment 10 Exceptions Reporter 2014-01-29 12:43:16 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206797
Comment 11 aldobrucale 2014-01-29 15:52:10 UTC
Created attachment 144547 [details]
stacktrace

ctrl-o, the exception appeared while I wasn't watching
Comment 12 michbarsinai 2014-01-29 19:37:11 UTC
Created attachment 144554 [details]
stacktrace

Closing the last editor tab using the close X on the tab.
Comment 13 michbarsinai 2014-01-29 19:40:11 UTC
Created attachment 144555 [details]
stacktrace

chosen "git > pull from upstream" in a project tree of a maven JEE project.
Comment 14 adithyank 2014-01-31 07:22:15 UTC
Created attachment 144616 [details]
stacktrace

moved the code from left to right while seeing the file diff
Comment 15 ssazonov 2014-01-31 10:28:15 UTC
Created attachment 144624 [details]
stacktrace

I closed all tabs and got this error
Comment 16 ssazonov 2014-01-31 12:37:15 UTC
Created attachment 144635 [details]
stacktrace

It occures sometime I close any tab with java code
Comment 17 manikantannaren 2014-02-01 14:19:15 UTC
Created attachment 144671 [details]
stacktrace

OPened Options Dialog
Navigated to Editor|Formatting
Language : Java
Category: Imports
Comment 18 adithyank 2014-02-01 15:01:15 UTC
Created attachment 144673 [details]
stacktrace

When last editor file is closed, this exception is coming.
Comment 19 adithyank 2014-02-01 15:04:15 UTC
Created attachment 144674 [details]
stacktrace

after reporting the exception from netbeans IDE itself, this exception reporter window came
Comment 20 manikantannaren 2014-02-02 02:37:15 UTC
Created attachment 144688 [details]
stacktrace

OPened OPtions|Editor|Formatting
Language: Java
Category: Naming
Comment 21 palman 2014-02-03 09:46:15 UTC
Created attachment 144709 [details]
stacktrace

Switch from Source to Design in Editor
Comment 22 michbarsinai 2014-02-04 04:19:15 UTC
Created attachment 144755 [details]
stacktrace

Saved a java file that was under a git merge conflict.
Comment 23 aquaglia 2014-02-04 11:10:18 UTC
Created attachment 144763 [details]
stacktrace

Java editing
Comment 24 aquaglia 2014-02-04 11:13:16 UTC
Created attachment 144764 [details]
stacktrace

Java editing
Comment 25 athompson 2014-02-04 17:16:16 UTC
Created attachment 144794 [details]
stacktrace

clicked in diff b/t working tree and head (git)
Comment 26 ssazonov 2014-02-05 09:58:18 UTC
Created attachment 144820 [details]
stacktrace

It occured in preview
Comment 27 Jiri Skrivanek 2014-02-05 12:22:22 UTC
Created attachment 144826 [details]
stacktrace

I closed 3 projects while some files were opened in editor.
Comment 28 gholmer 2014-02-06 19:34:36 UTC
Created attachment 144883 [details]
stacktrace

Selected some text in a Subversion graphic diff in order to copy and paste.
Comment 29 ytn01 2014-02-06 22:31:29 UTC
Created attachment 144887 [details]
stacktrace

Created a new JFrame form.
Added some components to it including a JList.

Changed the Model property of the list to a custom code, with value "new javax.swing.DefaultListModel()"
Exception was raised.
Comment 30 kidnapper 2014-02-07 11:34:34 UTC
Created attachment 144908 [details]
stacktrace

Just browsing the source of StringBuilder and AbstractStringBuilder and then closing the AbstractStringBuilder.
Comment 31 markee174 2014-02-08 14:22:23 UTC
Created attachment 144937 [details]
stacktrace

NetCat Formatting tests - happened as I quit file Wrapping 2 after testing
Comment 32 markee174 2014-02-08 14:45:30 UTC
Happens when I close last open Java class
Comment 33 host 2014-02-08 17:19:23 UTC
Created attachment 144943 [details]
stacktrace

Performed a SVN Diff and clicked in the left diff window using the latest NetBeans nightly built.
Comment 34 everflux 2014-02-09 22:40:25 UTC
Created attachment 144968 [details]
stacktrace

closed multiple java editor windows
Comment 35 Jiri Prox 2014-02-11 14:55:26 UTC
Created attachment 145046 [details]
stacktrace

NPW when closing file
Comment 36 aquaglia 2014-02-11 15:52:26 UTC
Created attachment 145049 [details]
stacktrace

Diffing java file
Comment 37 Ondrej Vrabec 2014-02-13 15:46:26 UTC
Created attachment 145155 [details]
stacktrace

switching project groups -> files were closed and other were opened
Comment 38 mortoza 2014-02-16 04:25:29 UTC
Created attachment 145241 [details]
stacktrace

this exception was created when I opened an existing JFramce interface.
Comment 39 mortoza 2014-02-19 03:22:30 UTC
Created attachment 145382 [details]
stacktrace

while displaying a JFrame
Comment 40 Exceptions Reporter 2014-02-19 03:22:38 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=206797
Comment 41 Dusan Balek 2014-02-19 12:25:32 UTC
Already fixed.

*** This bug has been marked as a duplicate of bug 240893 ***
Comment 42 Svata Dedic 2014-07-15 21:00:21 UTC
*** Bug 241047 has been marked as a duplicate of this bug. ***