From d61965bebcdaeb180ca7876627fbc8aadcc71b18 Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 11 Feb 2014 19:12:52 -0500 Subject: [PATCH] Revert "groovy null-safe operation, I miss you." This reverts commit 037393c28aad8b8d7d59994328ae7d3ec1f45ee7. --- core/src/main/java/hudson/Functions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 3d62d67d28..3736611bf8 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 { -- GitLab