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 125466 - IllegalArgumentException: Parameter must be a valid folder.
Summary: IllegalArgumentException: Parameter must be a valid folder.
Status: CLOSED DUPLICATE of bug 126009
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 12:13 UTC by Marian Mirilovic
Modified: 2009-01-22 15:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 12624


Attachments
stacktrace (3.88 KB, text/plain)
2008-01-17 12:14 UTC, Marian Mirilovic
Details
Proposed patch (5.11 KB, text/plain)
2008-01-25 10:05 UTC, John Rice
Details
updated patch (2.33 KB, patch)
2008-01-30 13:47 UTC, Padraig Obriain
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2008-01-17 12:13:57 UTC
Build: NetBeans IDE Dev (Build 200801170000)
VM: Java HotSpot(TM) Client VM, 10.0-b19
OS: Linux, 2.6.12-10-686, i386

User Comments:
Comment 1 Marian Mirilovic 2008-01-17 12:14:10 UTC
Created attachment 55195 [details]
stacktrace
Comment 2 Marian Mirilovic 2008-01-17 12:17:52 UTC
I've tried to clone hg.nb.org/main and I've pushed "Create new IDE Project" button in the dialog asking what to do after
clone itself.
Comment 3 Padraig Obriain 2008-01-21 16:06:35 UTC
I do not understand how to reproduce this from the comments.

How do I access hg.nb.org/main?
Comment 4 Padraig Obriain 2008-01-23 14:15:33 UTC
I have cloned the project but have not been able to reproduce the problem reported.

Can you give me exact instructions to reproduce the problem?
Comment 5 Marian Mirilovic 2008-01-23 14:25:57 UTC
Uf sorry Padraig, I do not have any additional informations. If you look at
http://statistics.netbeans.org/analytics/detail.do?id=20566 you'll find something important.
Comment 6 Padraig Obriain 2008-01-24 14:19:49 UTC
It looks like the only way that Projectutilities.newProjectWizard is called if a repository which does not contain any
NetBeans project is cloned. However it is not clear how the parameter can not be a valid folder.

I need instructions to reproduce this in order to solve it.
Comment 7 John Rice 2008-01-25 10:03:47 UTC
The problem is that you can get a null project if a project was cloned that isn't a NetBeans project, or you try and do
a clone of a NetBeans project [local or remote] that does not have all the NetBeans project files, build.xml,
project.properties ... committed.

Proposed patch handles this error and warns the user.
Comment 8 John Rice 2008-01-25 10:05:05 UTC
Created attachment 55558 [details]
Proposed patch
Comment 9 Padraig Obriain 2008-01-30 13:47:05 UTC
Created attachment 55764 [details]
updated patch
Comment 10 Padraig Obriain 2008-01-30 13:52:38 UTC
changeset:   65157:ba0c4692b290
tag:         tip
user:        padraigob@netbeans.org
date:        Wed Jan 30 13:44:46 2008 +0000
files:       mercurial/src/org/netbeans/modules/mercurial/ui/clone/Bundle.properties
mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneCompleted.java
mercurial/src/org/netbeans/modules/mercurial/ui/clone/ProjectUtilities.java
description:
Issue 125466: fix exception when project is cloned.


Comment 11 Padraig Obriain 2008-01-30 14:24:37 UTC
I did not apply the patch correctly. Need to look at this again.
Comment 12 Padraig Obriain 2008-02-07 11:12:44 UTC
The fix for issue 126009 should also fix this issue.

*** This issue has been marked as a duplicate of 126009 ***
Comment 13 Marian Mirilovic 2009-01-22 15:05:51 UTC
v/c