Issue Type: Bug Bug
Assignee: Oliver Gondža
Components: acceptance-test-harness
Created: 12/May/14 8:32 PM
Description:

A test @kohsuke wrote using @WithPlugins fails with

java.lang.NullPointerException
	at org.jenkinsci.test.acceptance.po.PluginManager.isInstalled(PluginManager.java:78)
	at org.jenkinsci.test.acceptance.po.PluginManager.installPlugin(PluginManager.java:107)
	at org.jenkinsci.test.acceptance.junit.WithPlugins$RuleImpl$1.installPlugins(WithPlugins.java:64)
	at org.jenkinsci.test.acceptance.junit.WithPlugins$RuleImpl$1.evaluate(WithPlugins.java:57)
	at org.jenkinsci.test.acceptance.junit.JenkinsAcceptanceTestRule$1.evaluate(JenkinsAcceptanceTestRule.java:50)
	at ...

The line of code in question:

String version = getVersionFromWpValue(n) != null ? getVersionFromWpValue(n) : ucmd.get().plugins.get(n).version;

I am not sure which of ucmd, get(), plugins, or get(...) is null, but if there is something wrong in the environment or test setup, a proper AssertionError should be thrown.

Environment: 1.1
Project: Jenkins
Priority: Major Major
Reporter: Jesse Glick
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to