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 255405 - Remote Mercurial Clone Other causes NullPointerException
Summary: Remote Mercurial Clone Other causes NullPointerException
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote VCS (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-18 16:24 UTC by Alexander Pepin
Modified: 2016-03-16 08:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 220027


Attachments
stacktrace (2.49 KB, text/plain)
2015-09-18 16:24 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2015-09-18 16:24:02 UTC
Build: NetBeans IDE Dev (Build 201509090002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
apepin: Steps to reproduce:
- Add a new remote host but do not set it as default
- call Team->Remote Mercurial->Clone Other
Result: NPE occurs.




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.remotefs.versioning.impl.RemoteVcsSupportImpl.getHome(RemoteVcsSupportImpl.java:266)
   at org.netbeans.modules.remotefs.versioning.api.RemoteVcsSupport.getHome(RemoteVcsSupport.java:128)
   at org.netbeans.modules.remotefs.versioning.api.VCSFileProxySupport.getHome(VCSFileProxySupport.java:548)
   at org.netbeans.modules.mercurial.remote.ui.wizards.CloneDestinationDirectoryPanel.defaultWorkingDirectory(CloneDestinationDirectoryPanel.java:278)
   at org.netbeans.modules.mercurial.remote.ui.wizards.CloneDestinationDirectoryPanel.<init>(CloneDestinationDirectoryPanel.java:67)
   at org.netbeans.modules.mercurial.remote.ui.wizards.CloneDestinationDirectoryWizardPanel.getComponent(CloneDestinationDirectoryWizardPanel.java:81)
Comment 1 Alexander Pepin 2015-09-18 16:24:03 UTC
Created attachment 156281 [details]
stacktrace
Comment 2 Alexander Pepin 2015-09-18 17:11:20 UTC
Setting the remote host as default does not help anyhow.
Comment 3 Alexander Simon 2015-10-22 12:24:56 UTC
fixing in enum, change set:
b215f3a05e64

Note. Change set has wrong bug number in comment.
Comment 4 Alexander Simon 2015-10-22 13:03:14 UTC
fixed in enum, change set:
33a251112d07
and increment spec versions:
0fc67155edbd
Comment 5 Alexander Simon 2015-10-22 13:41:03 UTC
inc spec version in enum, change set:
93b1a80a164d
Comment 6 Quality Engineering 2015-10-29 02:21:25 UTC
Integrated into 'main-silver', will be available in build *201510290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0d435ad6c52e
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #255405 Remote Mercurial Clone Other causes NullPointerException
(transplanted from 33a251112d074f262db14bff2536254391c7c3dd)
Comment 7 Alexander Pepin 2015-11-25 20:32:42 UTC
Verified in build 20151119.