Permalink
Browse files

JENKINS-14660 & JENKINS-15482 fix iteration logic in while loop

  • Loading branch information...
rodikal committed Oct 11, 2012
1 parent ec9adea commit 737ad3e6c9b4aec9322a245af6ff735d9880a7c3
@@ -31,6 +31,7 @@
ViewGroup owner = view.getOwner();
while (owner instanceof hudson.plugins.nested_view.NestedView) {
viewNames.add(((hudson.plugins.nested_view.NestedView) owner).getViewName());
+ owner = ((hudson.plugins.nested_view.NestedView) owner).getOwner();
}
Collections.reverse(viewNames);
viewName = StringUtils.join(viewNames, "/view/");

0 comments on commit 737ad3e

Please sign in to comment.