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 217010 - NullPointerException: The folder parameter cannot be null
Summary: NullPointerException: The folder parameter cannot be null
Status: RESOLVED DUPLICATE of bug 214382
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 08:55 UTC by anpilov
Modified: 2012-10-31 10:48 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191621


Attachments
stacktrace (1.46 KB, text/plain)
2012-08-17 08:55 UTC, anpilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description anpilov 2012-08-17 08:55:22 UTC
This bug was originally marked as duplicate of bug 214382, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2 (Build 201207171143)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Windows 7

User Comments:
GUEST: Inspecting code using findbugs

dwuysan: Attempt Find Bugs

GUEST: Running Findbugs.

It says "Please Wait" in the "Inspector Window".  However if you click the 'Categorize' button it will show a list of the violations.

GUEST: Raised when calling Source Inspection on a Maven project

gualtiero65: Running Inspection on "Netbeans Java hints" on a maven based project

roti: findbug inspect on a maven web project

swpalmer: Tried to run inspection (FindBugs) - it got to 100% and I got "Please Wait..." in the Inspector Window.

anpilov: Bugs Introspection




Stacktrace: 
java.lang.NullPointerException: The folder parameter cannot be null
   at org.openide.util.Parameters.notNull(Parameters.java:89)
   at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:1600)
   at org.netbeans.spi.java.project.support.ui.TreeRootNode$PathFinder.findPathReduced(TreeRootNode.java:235)
   at org.netbeans.spi.java.project.support.ui.TreeRootNode$PathFinder.findPathReduced(TreeRootNode.java:237)
   at org.netbeans.spi.java.project.support.ui.TreeRootNode$PathFinder.findPath(TreeRootNode.java:195)
   at org.netbeans.spi.java.project.support.ui.PackageView.findPath(PackageView.java:130)
Comment 1 anpilov 2012-08-17 08:55:25 UTC
Created attachment 123237 [details]
stacktrace
Comment 2 christian.kerth_IOSB 2012-09-03 15:46:28 UTC
Same error observed. As a result, the inspector window can not be used to navigate to the location of the deficiency detected by findbugs (no known way to get to the code defects). Error does not seem to occur on the first execution, but at the second one.

Restarting Netbeans does NOT resolve this issue. Deleting both the "cache" and the ".netbeans" folder resolves the issue (but IDE has to be reconfigured from scratch --> not acceptable).
Comment 3 Marian Mirilovic 2012-10-23 08:55:57 UTC
This bug was fixed in NB 7.2 Patch 1 and the fix is also available in recently released NB 7.2.1

*** This bug has been marked as a duplicate of bug 214382 ***
Comment 4 christian.kerth_IOSB 2012-10-29 14:48:32 UTC
using Netbeans 7.2.1 it is no longer a "null pointer exception" that occurs, but the Inspector window now shows "Project Type Not supported (<<name of project>>)".

Findbugs is unusable as it was before.
Comment 5 swpalmer 2012-10-29 20:25:21 UTC
I concur.  The core issue has not been resolved.  FindBugs integration doesn't work, and worse it spends a lot of time calculating something and only after it tells you "Project Type Not Supported".  You knew the project type before you started!!!!
Comment 6 Tomas Zezula 2012-10-31 10:28:59 UTC
In fact duplicate of issue #214382.
>I concur.  The core issue has not been resolved.  
Yes it was, as simply seen from http://hg.netbeans.org/releases/rev/912636caaabd
>FindBugs integration doesn't work.
This issue has nothing to do with find bugs but the project UI.
> and worse it spends a lot of time calculating something and only after it
>tells you "Project Type Not Supported".  You knew the project type before you
>started!!!!
Please create an issue on find bugs, java/project has nothing in common with find bugs.

*** This bug has been marked as a duplicate of bug 214382 ***
Comment 7 christian.kerth_IOSB 2012-10-31 10:37:52 UTC
new issue created for "Project type not supported"

see http://netbeans.org/bugzilla/show_bug.cgi?id=221160
Comment 8 Tomas Zezula 2012-10-31 10:48:57 UTC
Thanks Christian!
The problems reported as a part of other issue are hard to track and mostly lost as the original issue is resolved.