![]() |
|
|
|
|
Issue Type:
|
Bug
|
|
Affects Versions:
|
current |
|
Assignee:
|
Unassigned |
|
Components:
|
hockeyapp |
|
Created:
|
30/Apr/13 6:21 PM
|
|
Description:
|
When getProjectActions is called before current build has a result, it throws a NullPointerException. The following code fails when the current build has no result yet, getResult() return null:
Collection<AbstractBuild<?, ?>> predicated = CollectionUtils.select(builds, new Predicate() {
public boolean evaluate(Object o) {
return ((AbstractBuild<?, ?>) o).getResult().isBetterOrEqualTo(
Result.SUCCESS);
}
});
Steps to reproduce:
1. Configure EnvInject plugin to prepare the environment (use the EnvInjectListener)
2. Add HockeyApp plugin
EnvInject listener will call getProjectActions before the current build has a result.
|
|
Project:
|
Jenkins
|
|
Priority:
|
Major
|
|
Reporter:
|
Guido van Loon
|
|
|
|
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/groups/opt_out.