condition reversed in case bundle install result is null
diff --git a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/ServerResource.java b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/ServerResource.java
index 1161d45..a88012d 100644
--- a/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/ServerResource.java
+++ b/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/ServerResource.java
@@ -593,7 +593,7 @@
}
throw new Exception(errorMsg);
}
- if (!bundleInstallResult.get().getCode().equals(OsgiBundleInstallationResult.ResultCode.IGNORING_BUNDLE_AREADY_INSTALLED) && !bundleInstallResult.get().getCode().equals(OsgiBundleInstallationResult.ResultCode.UPDATED_EXISTING_BUNDLE)) {
+ if (!OsgiBundleInstallationResult.ResultCode.IGNORING_BUNDLE_AREADY_INSTALLED.equals(bundleInstallResult.get().getCode()) && !OsgiBundleInstallationResult.ResultCode.UPDATED_EXISTING_BUNDLE.equals(bundleInstallResult.get().getCode())) {
TypeTransformer.bundleInstallationResult(bundleInstallResult.get(), mgmt(), brooklyn(), ui);
}
}