You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2018/12/04 15:39:48 UTC

brooklyn-ui git commit: recent addition of isMemberSpec needs additional guard

Repository: brooklyn-ui
Updated Branches:
  refs/heads/master ef3ee0916 -> 189a751d8


recent addition of isMemberSpec needs additional guard

can get NPE since 2f61b7655706a1d96359e85b4e022cba78bb112d


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/189a751d
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/189a751d
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/189a751d

Branch: refs/heads/master
Commit: 189a751d882c353db56a1d12683f491299ed718a
Parents: ef3ee09
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Tue Dec 4 15:38:46 2018 +0000
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Tue Dec 4 15:38:46 2018 +0000

----------------------------------------------------------------------
 .../blueprint-composer/app/components/util/model/entity.model.js   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/189a751d/ui-modules/blueprint-composer/app/components/util/model/entity.model.js
----------------------------------------------------------------------
diff --git a/ui-modules/blueprint-composer/app/components/util/model/entity.model.js b/ui-modules/blueprint-composer/app/components/util/model/entity.model.js
index 7d04410..603eaa9 100644
--- a/ui-modules/blueprint-composer/app/components/util/model/entity.model.js
+++ b/ui-modules/blueprint-composer/app/components/util/model/entity.model.js
@@ -687,7 +687,7 @@ function isCluster() {
  * @returns {boolean}
  */
 function isMemberSpec() {
-    return this.parent.isCluster() && this.parent.getClusterMemberspecEntity() === this;
+    return this.parent && this.parent.isCluster() && this.parent.getClusterMemberspecEntity() === this;
 }
 
 export function baseType(s) {