diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 3d62d67d281a600bc1b98173e994b3aa79d8c0d7..3736611bf8ef46bd0d7f49aedae4745a5f05313c 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -1011,7 +1011,7 @@ public class Functions { if(ig== Jenkins.getInstance() || (view != null && ig == view.getOwnerItemGroup())) { assert i instanceof TopLevelItem; - if (view != null && view.contains((TopLevelItem)i)) { + if (view.contains((TopLevelItem)i)) { // if p and the current page belongs to the same view, then return a relative path return normalizeURI(ancestors.get(view)+'/'+url); } else {