Fix bug - invalid Protocol(with IDE) parsing
authorjungwook.ryu <jungwook.ryu@samsung.com>
Wed, 9 Sep 2015 07:47:12 +0000 (16:47 +0900)
committerjungwook.ryu <jungwook.ryu@samsung.com>
Wed, 9 Sep 2015 07:47:12 +0000 (16:47 +0900)
Change-Id: I973ffbb50eb7c7a26108df1249d51cc5eb26f563
Signed-off-by: jungwook.ryu <jungwook.ryu@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/communicator/IDECommunicator.java

index e253f0a..5464508 100644 (file)
@@ -83,8 +83,6 @@ public class IDECommunicator implements Runnable {
        private static final int MSG_INDEX_BINARY_OF_TARGET = 3;
        private static final int MSG_INDEX_EXECUTABLE_PATH = 4;
        private static final int MSG_INDEX_LOCAL_PACKAGE_PATH = 5;
-       private static final int MSG_INDEX_INTERACTIVE_INFO = 6; // This is not
-                                                                                                                               // default
        private static final int MSG_DEFAULT_LENGTH = 5;
 
        // project type string
@@ -355,7 +353,7 @@ public class IDECommunicator implements Runnable {
                final String binaryOfTarget = new String(strMsg[MSG_INDEX_BINARY_OF_TARGET].trim());
                final String executablePath = new String(strMsg[MSG_INDEX_EXECUTABLE_PATH].trim());
                List<String> localPackagePathList = new ArrayList<String>();
-               int msg_index_interactive = MSG_INDEX_INTERACTIVE_INFO;
+               int msg_index_interactive = MSG_INDEX_LOCAL_PACKAGE_PATH;
                for (int i = MSG_INDEX_LOCAL_PACKAGE_PATH; i < strMsg.length; i++) {
                        msg_index_interactive = i;
                        if (AnalyzerUtil.isInteger(strMsg[i].trim())) {
@@ -366,7 +364,7 @@ public class IDECommunicator implements Runnable {
                /*
                 * make interactiveInfo, FunctionBodyInstrument
                 */
-               parseCheckpoints(strMsg, msg_index_interactive);
+               parseCheckpoints(strMsg, ++msg_index_interactive);
 
                if (isOpenWelcomeDlg()) {
                        Logger.debug("Start -AutoRun Waiting...");