[Title] Add null checking to the batchExecute method
authorho.namkoong <ho.namkoong@samsung.com>
Wed, 11 Jul 2012 13:05:18 +0000 (22:05 +0900)
committerho.namkoong <ho.namkoong@samsung.com>
Wed, 11 Jul 2012 13:05:18 +0000 (22:05 +0900)
org.tizen.common/src/org/tizen/common/util/HostUtil.java

index ba9775e..4288c34 100644 (file)
@@ -115,6 +115,9 @@ public abstract class HostUtil{
     
     public static boolean batchExecute(String command)    
     {
+        if(command == null) {
+            return false;
+        }
         String[] fullCommand = getCommand(command);
 
         Runtime run = Runtime.getRuntime();