We also hit the issue in version 0.22. I don't have a case to reproduce, but referring to the following stacktrace, I think it's required to check for null before calling get(command) on EnvVars

Aug 19, 2014 6:23:15 PM hudson.plugins.ws_cleanup.WsCleanup perform
SEVERE: null
java.lang.NullPointerException
	at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40)
	at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34)
	at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:369)
	at java.util.TreeMap.getEntry(TreeMap.java:340)
	at java.util.TreeMap.get(TreeMap.java:273)
	at hudson.plugins.ws_cleanup.Cleanup.<init>(Cleanup.java:35)
	at hudson.plugins.ws_cleanup.WsCleanup.perform(WsCleanup.java:165)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)

I will propose a PR with the null check if it works.

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