Ken Overly commented on Bug JENKINS-26487

I have additional info to report. I was able to get the VaultSCM plugin running in a debugger to track down exactly where the NPE occurs.

It occurs at line 357 in method getVaultPath() in file VaultSCM.java. The Computer object is NULL and I'm trying to identify why.

VaultSCM.java
private String getVaultPath(Launcher launcher, TaskListener listener) throws InterruptedException, IOException {

        final String defaultPath = "C:\\Program Files\\SourceGear\\Vault Client\\vault.exe";
        final String defaultPathX86 = "C:\\Program Files (x86)\\SourceGear\\Vault Client\\vault.exe";

        VaultSCMInstallation installation = getVault();
        String pathToVault;

        if (installation == null) {
            // Check the first default location for vault...
            if (checkVaultPath(defaultPath, launcher, listener)) {
                pathToVault = defaultPath;
            } else if (checkVaultPath(defaultPathX86, launcher, listener)) {
                pathToVault = defaultPathX86;
            } else {
                listener.fatalError("Failed find vault client");
                return null;
            }
        } else {
NPE-->      installation = installation.forNode(Computer.currentComputer().getNode(), listener);
            pathToVault = installation.getVaultLocation();
            if (!checkVaultPath(pathToVault, launcher, listener)) {
                listener.fatalError(pathToVault + " doesn't exist");
                return null;
            }
        }
        return pathToVault;
    }
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to