Navigation Menu

Skip to content

Commit

Permalink
[FIXED JENKINS-20951] XmlFile.read/unmarshal needs to catch general X…
Browse files Browse the repository at this point in the history
…StreamException so as to include CannotResolveClassException, thrown when a TopLevelItem provided by a plugin is unloadable.

Originally-Committed-As: a58e198f8aa60dd0cb244cba338d9c48141590e5
  • Loading branch information
jglick committed Dec 10, 2013
1 parent 98f9f1a commit ed58f6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/src/main/java/org/jvnet/hudson/test/MockFolder.java
Expand Up @@ -94,6 +94,9 @@ public String call(TopLevelItem item) {
}

@Override public TopLevelItem getItem(String name) {
if (items == null) {
return null; // cf. parent hack in AbstractProject.onLoad
}
return items.get(name);
}

Expand Down

0 comments on commit ed58f6c

Please sign in to comment.