Github user ahgittin commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/585#discussion_r28337793
--- Diff:
core/src/main/java/brooklyn/catalog/internal/BasicBrooklynCatalog.java ---
@@ -538,19 +639,17 @@ public void load() {
} else {
catalogSymbolicName = id;
}
- } else if (Strings.isNonBlank(name)) {
- catalogSymbolicName = name;
- } else if (Strings.isNonBlank(plan.getName())) {
+ } else if (plan!=null && Strings.isNonBlank(plan.getName())) {
catalogSymbolicName = plan.getName();
- } else if (plan.getServices().size()==1) {
+ } else if (plan!=null && plan.getServices().size()==1) {
--- End diff --
yes. if i've supplied a policy then `plan` wouldn't be set. (or if i've
deliberately supplied a broken template which i expect people to fix, but
that's not something we need to support.)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---