MISC : added null check statement(FORWARD_NULL2) 92/27792/1
authorjm.jaemin.kim <jm.jaemin.kim@samsung.com>
Fri, 19 Sep 2014 05:20:57 +0000 (14:20 +0900)
committerjm.jaemin.kim <jm.jaemin.kim@samsung.com>
Fri, 19 Sep 2014 05:20:57 +0000 (14:20 +0900)
added null check statement(FORWARD_NULL2)

Change-Id: I2ebbb51e2a6c383b2aa74b77248a8fbb7f02f505
Signed-off-by: jm.jaemin.kim <jm.jaemin.kim@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/wizards/TizenPlatformProjectWizard.java

index 4e26699..6c17a31 100644 (file)
@@ -153,7 +153,7 @@ public class TizenPlatformProjectWizard extends TizenProjectWizard {
             result = super.performFinish();
 
             try {
-                if (newProject !=null) {
+                if (newProject != null) {
                     PlatformProjectNature.addNatureToProject(newProject, null);
                 }
             } catch (CoreException e) {
@@ -167,7 +167,7 @@ public class TizenPlatformProjectWizard extends TizenProjectWizard {
             result = super.performFinish();
 
             try {
-                if (newProject !=null) {
+                if (newProject != null) {
                     File file = new File(newProject.getLocation().toString() + "/.git");
                     if (file.exists()) {
                         Repository gitRepos = FileRepositoryBuilder.create(file);
@@ -179,7 +179,9 @@ public class TizenPlatformProjectWizard extends TizenProjectWizard {
             } catch (IOException e) {
                 DialogUtil.openMessageDialog("Warning: Converting the project to Git failed!");
             }
-            commander.ApplySharedProject(newProject, getContainer());
+            if (newProject != null) {
+                commander.ApplySharedProject(newProject, getContainer());    
+            }
         }
         UserLogger.end(PlatformUserInteraction.CLONE_GITPROJECT);
         return result;