fix console bug
authorsanghyunnim.lee <sanghyunnim.lee@samsung.com>
Sat, 10 Dec 2011 04:56:28 +0000 (13:56 +0900)
committersanghyunnim.lee <sanghyunnim.lee@samsung.com>
Sat, 10 Dec 2011 04:56:28 +0000 (13:56 +0900)
com.samsung.tizen.common/src/com/samsung/tizen/common/console/AnsicodeAdapter.java

index c98cea3..265a6bd 100644 (file)
@@ -99,8 +99,8 @@ public class AnsicodeAdapter {
                Color[] color = {BLACK,WHITE}; //foreground&background
        
         for (int j = 0; j < codes.length; j++) {
-
-            if (codes[j].matches("[\\d]*")) {
+               
+            if (codes[j].length() > 0 && codes[j].matches("[\\d]*")) {
                 int code = Integer.parseInt(codes[j]);
                 if (code == 0)
                     brighter = false;