EDITOR: Fixed icon name validation 54/15954/1
authorchanghyun1.lee <changhyun1.lee@samsung.com>
Sun, 2 Feb 2014 07:45:09 +0000 (16:45 +0900)
committerchanghyun1.lee <changhyun1.lee@samsung.com>
Sun, 2 Feb 2014 07:45:09 +0000 (16:45 +0900)
Check for empty string

Change-Id: I12db7bc2ab54d69035e573e4eca98287cfd663e5
Signed-off-by: changhyun1.lee <changhyun1.lee@samsung.com>
org.tizen.common/src/org/tizen/common/ui/dialog/NewIconDialog.java

index 9df5120..ec3fed3 100644 (file)
@@ -193,7 +193,7 @@ public class NewIconDialog extends SelectionStatusDialog {
 
         File file = new File(fPath);
 
-        if (fPath.length() < 3 || file.isDirectory()) {
+        if ( StringUtil.isEmpty(fPath) || file.isDirectory()) {
             status = new Status(IStatus.ERROR, CommonPlugin.PLUGIN_ID, Messages.NewIconDialog_FileSelectError);
         } else if (!file.exists()) {
             status = new Status(IStatus.ERROR, CommonPlugin.PLUGIN_ID, fPath + " does not exist");