[Title] Modify cancel process for importing rootstrap
authordonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 27 Nov 2012 01:20:32 +0000 (10:20 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Tue, 27 Nov 2012 01:20:32 +0000 (10:20 +0900)
org.tizen.nativeplatform/src/org/tizen/nativeplatform/views/ui/RootstrapView.java

index a677717..a8752bc 100644 (file)
@@ -509,7 +509,6 @@ public class RootstrapView extends ViewPart {
                resultFilePath += ".tar";
             }
             final String selectedFilePath =  resultFilePath;
-               // generate rootstrap here
                ProgressMonitorDialog dialog = new ProgressMonitorDialog(shell);
                try {
                        dialog.run(true, true, new IRunnableWithProgress() {
@@ -534,6 +533,9 @@ public class RootstrapView extends ViewPart {
                }
         }
         
+        if (generatedRootstrap == null) {
+               return;
+        }
         RootstrapManager.addRootstrap( generatedRootstrap );
                DialogUtil.openMessageDialog(shell,resources.getString("Action.Msg.Info.ImportOK"));
     }