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 218622 - NullPointerException: The bootPath parameter cannot be null
Summary: NullPointerException: The bootPath parameter cannot be null
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 224417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-19 14:14 UTC by Jiri Prox
Modified: 2013-01-09 02:26 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192577


Attachments
stacktrace (5.25 KB, text/plain)
2012-09-19 14:14 UTC, Jiri Prox
Details
Screen shot of save dialog for org.netbeans.samples.ClassA.java (175.32 KB, image/png)
2012-12-14 19:30 UTC, rburkhead
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2012-09-19 14:14:43 UTC
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)
Comment 1 Jiri Prox 2012-09-19 14:14:46 UTC
Created attachment 124585 [details]
stacktrace
Comment 2 Exceptions Reporter 2012-10-12 06:11:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=192577
Comment 3 rburkhead 2012-12-14 19:30:30 UTC
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.
Comment 4 rburkhead 2012-12-14 19:30:41 UTC
Created attachment 129393 [details]
Screen shot of save dialog for org.netbeans.samples.ClassA.java
Comment 5 Jiri Prox 2013-01-03 13:33:10 UTC
*** Bug 224417 has been marked as a duplicate of this bug. ***
Comment 6 Jan Lahoda 2013-01-08 09:52:10 UTC
Fixed in trunk:
http://hg.netbeans.org/jet-main/rev/44a9d3d68731
Comment 7 Quality Engineering 2013-01-09 02:26:55 UTC
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.