CB-11776 check edit-config target exists
authorktop <ktop500@gmail.com>
Fri, 26 Aug 2016 21:59:46 +0000 (17:59 -0400)
committerSteve Gill <stevengill97@gmail.com>
Thu, 1 Sep 2016 22:50:48 +0000 (15:50 -0700)
 This closes #486

src/ConfigChanges/ConfigChanges.js

index e5b09a7..c9b9742 100644 (file)
@@ -378,7 +378,7 @@ function is_conflicting(editchanges, config_munge, self, force) {
                 conflictingParent = editchange.target;
             }
 
-            if (target.length !== 0) {
+            if (target && target.length !== 0) {
                 // conflict has been found, exit and throw an error
                 conflictFound = true;
                 if (!force) {