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 129781 - HgUtils.isIgnored passes null to ProjectManager.isProject
Summary: HgUtils.isIgnored passes null to ProjectManager.isProject
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL: http://deadlock.netbeans.org/hudson/j...
Keywords: RANDOM, TEST
: 164770 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-11 14:41 UTC by Jesse Glick
Modified: 2009-05-12 10:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
proposed patch (1.01 KB, patch)
2008-03-11 15:20 UTC, Padraig Obriain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2008-03-11 14:41:33 UTC
Observed in validation tests:

java.lang.IllegalArgumentException: Attempted to pass a null directory to isProject
	at org.netbeans.api.project.ProjectManager.isProject(ProjectManager.java:406)
	at org.netbeans.modules.mercurial.util.HgUtils.isIgnored(HgUtils.java:320)
	at org.netbeans.modules.mercurial.util.HgUtils.isIgnored(HgUtils.java:303)
	at org.netbeans.modules.mercurial.FileStatusCache.scanFolder(FileStatusCache.java:777)
	[...]
Comment 1 Jesse Glick 2008-03-11 14:41:58 UTC
No apparently related changes => probably random.
Comment 2 Padraig Obriain 2008-03-11 14:56:18 UTC
            if (projectManager.isProject(FileUtil.toFileObject(file))) {

is line 320.
Comment 3 Padraig Obriain 2008-03-11 14:57:11 UTC
FileUtil.toFileObject returns null if the file does not exist or there is no URLMapper available to convert it
Comment 4 Padraig Obriain 2008-03-11 15:20:02 UTC
Created attachment 58159 [details]
proposed patch
Comment 5 Padraig Obriain 2008-03-11 15:27:44 UTC
Patch pushed in 31203c5c0f19.
Comment 6 Jesse Glick 2008-03-11 16:03:15 UTC
You must set the Target Milestone when closing any issue as FIXED.
Comment 7 Ondrej Vrabec 2009-05-12 10:14:24 UTC
*** Issue 164770 has been marked as a duplicate of this issue. ***