net: remove null exception.
authorMunkyu Im <munkyu.im@samsung.com>
Fri, 29 May 2015 03:02:01 +0000 (12:02 +0900)
committerMunkyu Im <munkyu.im@samsung.com>
Fri, 29 May 2015 03:12:21 +0000 (12:12 +0900)
"ipAddr" could be null if en0 binds to bridge already.
so, replace checking length with null.

Change-Id: I9f4a31572c1f6b5018c9bc1ae2df77979bee3fa0
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
src/org/tizen/emulator/manager/tool/TapUtil.java

index 56f4c41..7b00f61 100644 (file)
@@ -981,7 +981,7 @@ public class TapUtil {
                                        ipAddr = str.trim();
                                        EMLogger.getLogger().info("host IP en0: " + ipAddr);
                                }
-                               if (ipAddr.length() == 0) {
+                               if (ipAddr == null) {
                                        isCommandSuccess = false;
                                        cmd = Arrays
                                                        .asList("/bin/sh", "-c",