From: sanghyunnim.lee Date: Sat, 10 Dec 2011 04:56:28 +0000 (+0900) Subject: fix console bug X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dad8393accf6482f6f20532326e9aaa19a38788;p=sdk%2Fide%2Fcommon-eplugin.git fix console bug --- diff --git a/com.samsung.tizen.common/src/com/samsung/tizen/common/console/AnsicodeAdapter.java b/com.samsung.tizen.common/src/com/samsung/tizen/common/console/AnsicodeAdapter.java index c98cea3..265a6bd 100644 --- a/com.samsung.tizen.common/src/com/samsung/tizen/common/console/AnsicodeAdapter.java +++ b/com.samsung.tizen.common/src/com/samsung/tizen/common/console/AnsicodeAdapter.java @@ -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;