return (SCMTrigger) t;
}
}
return null;
}
<BUG>@Override public Collection<? extends SCM> getSCMs() {
WorkflowRun b = getLastCompletedBuild();
if (b == null) {</BUG>
return Collections.emptySet();
}

return (SCMTrigger) t;
}
}
return null;
}
@Override public Collection<? extends SCM> getSCMs() {
WorkflowRun b = getLastSuccessfulBuild();
if (b == null) {
b = getLastCompletedBuild();
}
if (b == null) {
return Collections.emptySet();
}
