Added exceptions on websocket creation 65/87265/1
authorkmook <kmook.choi@samsung.com>
Wed, 7 Sep 2016 07:33:02 +0000 (16:33 +0900)
committerkmook <kmook.choi@samsung.com>
Wed, 7 Sep 2016 07:33:02 +0000 (16:33 +0900)
Change-Id: I0c61c8366353134c8b487c34d9f3be913063af6b
Signed-off-by: kmook <kmook.choi@samsung.com>
msf_tizen_client/src/Channel.cpp

index 4357b99..eda4e09 100755 (executable)
@@ -1241,6 +1241,11 @@ void Channel::create_websocket(void *att) {
                MSF_DBG("Creating libwebsocket context failed\n");
                return;
        }
+
+       if (uri.empty()) {
+               MSF_DBG("uri is empty");
+               return;
+       }
        n = 0;
        get_ip_port_from_uri(uri, &server_ip_address, &server_port);
        string api = getapifromUri(uri);