Check the parameter first
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 29 Dec 2014 02:52:18 +0000 (11:52 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 29 Dec 2014 02:52:18 +0000 (11:52 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I8311982b3603365c716289aaff31dbb78a31b4c4

dynamicbox/src/dynamicbox.c

index 3bb52af..e746ef9 100644 (file)
@@ -1218,6 +1218,10 @@ PUBLIC int dynamicbox_freeze_scroller(const char *pkgname, const char *id)
     char *uri;
     int ret;
 
+    if (!pkgname || !id) {
+       return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+    }
+
     uri = id_to_uri(id);
     if (!uri) {
        ErrPrint("Heap: %s\n", strerror(errno));
@@ -1234,6 +1238,10 @@ PUBLIC int dynamicbox_thaw_scroller(const char *pkgname, const char *id)
     char *uri;
     int ret;
 
+    if (!pkgname || !id) {
+       return DBOX_STATUS_ERROR_INVALID_PARAMETER;
+    }
+
     uri = id_to_uri(id);
     if (!uri) {
        ErrPrint("Heap: %s\n", strerror(errno));