diff --git a/src/main/java/com/cloudbees/jenkins/plugins/BitBucketMultibranchTrigger.java b/src/main/java/com/cloudbees/jenkins/plugins/BitBucketMultibranchTrigger.java index ddaf045..c1c8c5a 100644 --- a/src/main/java/com/cloudbees/jenkins/plugins/BitBucketMultibranchTrigger.java +++ b/src/main/java/com/cloudbees/jenkins/plugins/BitBucketMultibranchTrigger.java @@ -45,7 +45,9 @@ public FormValidation doCheckOverrideUrl(@QueryParameter String value) throws IO @Override public boolean isApplicable(Item item) { - LOGGER.finest(item.getClass().getSimpleName()); + if ( item != null){ + LOGGER.finest(item.getClass().getSimpleName()); + } return item instanceof WorkflowMultiBranchProject; }