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 255380 - NullPointerException: The p parameter cannot be null
Summary: NullPointerException: The p parameter cannot be null
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-17 22:50 UTC by MackSix
Modified: 2015-09-22 14:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220010


Attachments
stacktrace (2.27 KB, text/plain)
2015-09-17 22:50 UTC, MackSix
Details
stacktrace (2.27 KB, text/plain)
2015-09-17 23:08 UTC, MackSix
Details
stacktrace (2.27 KB, text/plain)
2015-09-17 23:20 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2015-09-17 22:50:51 UTC
Build: NetBeans IDE Dev (Build 201509170002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 7

User Comments:
MackSix: 1. Ran Inpect & Transform: If-Else must use braces on JEdit 5.2 source code.
2. Looked at a few files in the preview Diff view and got this exception: https://netbeans.org/bugzilla/show_bug.cgi?id=255371
3. I did the refactoring and then an  UNDO. 
4. Then  I deleted the project and chose to delete the fodler with it. 
Afterwards, I viewed the location of teh project in Windows File Explorer and the project was not delted it. While looking at it, this exception was thrown in NetBeans.




Stacktrace: 
java.lang.NullPointerException: The p parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.netbeans.api.project.ProjectUtils.getSources(ProjectUtils.java:109)
   at org.netbeans.modules.java.freeform.Classpaths$RemoveSources.<init>(Classpaths.java:773)
   at org.netbeans.modules.java.freeform.Classpaths.createCompileClasspath(Classpaths.java:436)
   at org.netbeans.modules.java.freeform.Classpaths.createProcessorClasspath(Classpaths.java:496)
   at org.netbeans.modules.java.freeform.Classpaths.access$600(Classpaths.java:126)
Comment 1 MackSix 2015-09-17 22:50:53 UTC
Created attachment 156261 [details]
stacktrace
Comment 2 MackSix 2015-09-17 23:08:36 UTC
Created attachment 156262 [details]
stacktrace

1. Ran Inpect & Transform: If-Else must use braces on JEdit 5.2 source code.
2. Looked at a few files in the preview Diff view.
3. I did the refactoring and then an UNDO. 
4. Then I deleted the project and chose to delete the fodler with it. 
5. Viewed the location of the project in Windows File Explorer and the project was not delted it. I copied a backup copy of the project over it and while copying was being performed, this exception was thrown in NetBeans. It was thrown when I was promted by Windows to replace or keep both copies of ".gitaccess" file. (This is a file that was already in the project, I did not initialize a git repository on the project.)
Comment 3 MackSix 2015-09-17 23:20:38 UTC
Created attachment 156263 [details]
stacktrace

1. Ran Inspect & Transform: If-Else must use braces on JEdit 5.2 source code. 
2. Looked a graphical preview Diff of one of the files.
3. Clicked refactor.
4. Did UNDO on refactor.
5. Delted project, but the projec was not really deleted. 
6. After project was deleted, this exceptoin was thrown. 
(I did not try to copy over with backup project this time, so it appears that has nothing to do with it.)
Comment 4 Tomas Zezula 2015-09-18 07:29:32 UTC
Fixed jet-main 411169f70026
Comment 5 Quality Engineering 2015-09-19 03:05:10 UTC
Integrated into 'main-silver', will be available in build *201509190002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/411169f70026
User: Tomas Zezula <tzezula@netbeans.org>
Log: #255380:NullPointerException: The p parameter cannot be null
Comment 6 MackSix 2015-09-22 14:56:15 UTC
v. fixed. 

Product Version: NetBeans IDE Dev (Build 201509220002)
Java: 1.8.0_60; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)