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 201209190001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11 OS: Windows 7 User Comments: jiriprox: NPE when opening Tools -> Options -> Editor -> Formatting -> Language: Java, Category: Imports Stacktrace: java.lang.NullPointerException: The bootPath parameter cannot be null at org.openide.util.Parameters.notNull(Parameters.java:89) at org.netbeans.api.java.source.ClasspathInfo.create(ClasspathInfo.java:326) at org.netbeans.modules.java.hints.spiimpl.batch.BatchUtilities.sortFiles(BatchUtilities.java:398) at org.netbeans.modules.java.hints.spiimpl.batch.BatchSearch.getLocalVerifiedSpans(BatchSearch.java:226) at org.netbeans.modules.java.hints.spiimpl.batch.BatchSearch.access$600(BatchSearch.java:98) at org.netbeans.modules.java.hints.spiimpl.batch.BatchSearch$LocalIndexEnquirer.validateResource(BatchSearch.java:553)
Created attachment 124585 [details] stacktrace
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=192577
After encountering this NPE (see expection #639971), I was unable to continue with unit testing. Pressing <CTRL><F6> continued to throw the NPE. I decided to shut down and restart the IDE to clear the state. The IDE reported that "org.netbeans.samples.ClassA.java" needed to be saved by opening a save dialog. Not recognizing the file name, I assumed that the IDE was confused, and closed all open source files to ensure that all my work was saved. Attempted to close the IDE again, this time with no source files open, with the same result. See attached screen shot.
Created attachment 129393 [details] Screen shot of save dialog for org.netbeans.samples.ClassA.java
*** Bug 224417 has been marked as a duplicate of this bug. ***
Fixed in trunk: http://hg.netbeans.org/jet-main/rev/44a9d3d68731
Integrated into 'main-golden', will be available in build *201301090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/44a9d3d68731 User: Jan Lahoda <jlahoda@netbeans.org> Log: #218622: preventing NPEs and other problems for files without boot/class/source path.