Skip to content

Commit

Permalink
[JENKINS-26392] Fix ClassCastException w/ Folders
Browse files Browse the repository at this point in the history
Not yet ideal/intuitive, since now you can select a folder but it won't
select its children.
But at least it's not crashing totally when using it, I guess that's
still an improvement...
  • Loading branch information
batmat committed Feb 13, 2016
1 parent f45d2fe commit 9b958f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/hudson/model/RadiatorView.java
Expand Up @@ -143,7 +143,7 @@ public ProjectViewEntry getContents() {
}

for (TopLevelItem item : super.getItems()) {
if(!isDisabled(item)) {
if(item instanceof Job && !isDisabled(item)) {
IViewEntry entry = new JobViewEntry(this, (Job<?, ?>) item);
contents.addBuild(entry);
}
Expand Down

0 comments on commit 9b958f2

Please sign in to comment.