MISC: Resolved dereference null reture value
authordonghyuk.yang <donghyuk.yang@samsung.com>
Mon, 31 Mar 2014 00:26:46 +0000 (09:26 +0900)
committerdonghyuk.yang <donghyuk.yang@samsung.com>
Mon, 31 Mar 2014 00:26:46 +0000 (09:26 +0900)
Change-Id: Ib3441b2031f18c46720c5d7f8f7b4e2cafaafabd
Signed-off-by: donghyuk.yang <donghyuk.yang@samsung.com>
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizard/pages/PlatformEFLLaunchSettingPage.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/launch/wizards/EnvironmentDialog.java
org.tizen.nativeplatform/src/org/tizen/nativeplatform/pkg/commander/deb/DebCommanderHost.java

index 8bcfbdc..99d7f95 100644 (file)
@@ -65,10 +65,10 @@ public class PlatformEFLLaunchSettingPage extends PlatformLaunchSettingPage {
 
         appId = PlatformLaunchUtil.getAppId(project);
         executablePath = PlatformLaunchUtil.getProgramPath(project);
-        if (appId.length > 0) {
+        if (appId != null && appId.length > 0) {
             prevAppId = appId[0];
         }
-        if (executablePath.length > 0) {
+        if (executablePath != null && executablePath.length > 0) {
             prevExec = executablePath[0];
         }
 
index 634336c..bd5326e 100644 (file)
@@ -499,7 +499,7 @@ public class EnvironmentDialog extends Dialog {
     /**
      * Label provider for the environment table
      */
-    public class EnvironmentVariableLabelProvider extends LabelProvider implements
+    private static class EnvironmentVariableLabelProvider extends LabelProvider implements
             ITableLabelProvider {
         public String getColumnText(Object element, int columnIndex) {
             String result = null;
index f0e30bd..17fd36f 100644 (file)
@@ -277,7 +277,7 @@ public class DebCommanderHost implements IPkgCommander {
 
     @Override
     public String getLogs() {
-        return null;
+        return "";
     }
 
     protected String makeCommand(String... cmds) {