From: Pawel Kaczmarek Date: Tue, 24 Mar 2015 09:51:44 +0000 (+0100) Subject: [Notification] Fix remove - invalid id X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b72bb6ec1cb5636c69d7c6f1680d358f28803b90;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Notification] Fix remove - invalid id [Verification] TCT NotificationManager_remove_id_invalid should pass Change-Id: Id8f747020533cb3e651a5dc6e63ea2b604f2a69f Signed-off-by: Pawel Kaczmarek --- diff --git a/src/notification/notification_api.js b/src/notification/notification_api.js index afdac6d9..c3416af4 100644 --- a/src/notification/notification_api.js +++ b/src/notification/notification_api.js @@ -94,7 +94,7 @@ NotificationManager.prototype.remove = function(id) { {name: 'id', type: types_.STRING} ]); - if (!arguments.length) { + if (!arguments.length || !(parseInt(arguments[0]) > 0)) { throw new WebAPIException(WebAPIException.NOT_FOUND_ERR); }