Add conditional statement for removing platform log
authorHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 2 Sep 2013 05:18:17 +0000 (14:18 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Mon, 2 Sep 2013 05:20:29 +0000 (14:20 +0900)
Change-Id: I7a25be42ff50a8c6c30db914767d20ffbe908764
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
src/io/FIo_RegistryCore.cpp

index 1f0b50d..6cee81a 100644 (file)
@@ -307,7 +307,10 @@ _RegistryCore::Parse(void)
                                                   "[E_PARSING_FAILED] Entry name could not be parsed.");
                        }
 
-                       line.SubString(firstTokenPos + 1, entryVal); // extract entry value
+                       if (line.GetLength() > firstTokenPos + 1)
+                       {
+                               line.SubString(firstTokenPos + 1, entryVal); // extract entry value
+                       }
 
                        // check if entry value contains invalid chars
                        pEntryValue.reset(_StringConverter::CopyToCharArrayN(entryVal));