changeset 7859:de7ad70a06f9

[SCENEBUILDER] Fix issue when deleting Root object
author slions
date Fri, 29 Aug 2014 17:35:30 +0200
parents 190eb7e2d1ff
children 566591f1da88
files apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/SetDocumentRootJob.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/SetDocumentRootJob.java	Fri Aug 29 17:31:22 2014 +0200
+++ b/apps/scenebuilder/SceneBuilderKit/src/com/oracle/javafx/scenebuilder/kit/editor/job/SetDocumentRootJob.java	Fri Aug 29 17:35:30 2014 +0200
@@ -82,6 +82,9 @@
 
     @Override
     protected AbstractSelectionGroup getNewSelectionGroup() {
+        if (newRoot == null) {
+            return null;
+        }
         List<FXOMObject> newObjects = new ArrayList<>();
         newObjects.add(newRoot);
         return new ObjectSelectionGroup(newObjects, newRoot, null);