# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneAction.java --- versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneAction.java Base (1.19) +++ versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/clone/CloneAction.java Locally Modified (Based On 1.19) @@ -137,7 +137,11 @@ final String prjName = projName; File cloneProjFile; if (!prjIsRepos) { - String name = prjFile.getAbsolutePath().substring(source.length() + 1); + String name = null; + if(prjFile != null) + name = prjFile.getAbsolutePath().substring(source.length() + 1); + else + name = target; cloneProjFile = new File (normalizedCloneFolder, name); } else { cloneProjFile = normalizedCloneFolder;