[3.0] Add a condition to remove needless log message
authordahyeong.kim <dahyeong.kim@samsung.com>
Thu, 29 Aug 2013 10:30:22 +0000 (19:30 +0900)
committerdahyeong.kim <dahyeong.kim@samsung.com>
Thu, 29 Aug 2013 10:31:45 +0000 (19:31 +0900)
Change-Id: I6580e467a08af01c96ed65d4a33f68d82eb13fd2
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
src/base/utility/FBaseUtilUri.cpp

index eb62a9c..32522d7 100644 (file)
@@ -1446,7 +1446,7 @@ Uri::ParseHierarchicalUri(const Tizen::Base::String& str, int startSsp, Tizen::B
        curIndex = position;
 
        // If there is no query after question-mark "?", this method returns E_SUCCESS and saves empty string as query.
-       if (str[curIndex] == L'?' && ++curIndex < str.GetLength())
+       if (curIndex < str.GetLength() && str[curIndex] == L'?' && ++curIndex < str.GetLength())
        {
                String tempQuery;