Skip to content
Permalink
Browse files

[JENKINS-41124] Forgot to return the match when we find it first time

  • Loading branch information...
stephenc committed Jan 18, 2017
1 parent 15561c5 commit 89d7adebc0ed51784584cb6932487d48b439a9ca
@@ -558,7 +558,10 @@ public P getItem(String name) {
return null;
}
P item = super.getItem(name);
if (item == null && name.indexOf('%') != -1) {
if (item != null) {
return item;
}
if (name.indexOf('%') != -1) {
String decoded = NameEncoder.decode(name);
item = super.getItem(decoded);
if (item != null) {
@@ -226,7 +226,10 @@ public void onLoad(ItemGroup<? extends Item> parent, String name) throws IOExcep
return null;
}
MultiBranchProject<?, ?> item = super.getItem(name);
if (item == null && name.indexOf('%') != -1) {
if (item != null) {
return item;
}
if (name.indexOf('%') != -1) {
String decoded = NameEncoder.decode(name);
item = super.getItem(decoded);
if (item != null) {

0 comments on commit 89d7ade

Please sign in to comment.
You can’t perform that action at this time.