projects
/
platform
/
core
/
api
/
webapi-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37c6faa
)
[Push] Return null in case there is no data received.
52/69752/1
author
Tomasz Marciniak
<t.marciniak@samsung.com>
Mon, 16 May 2016 12:20:59 +0000
(14:20 +0200)
committer
Tomasz Marciniak
<t.marciniak@samsung.com>
Mon, 16 May 2016 12:25:21 +0000
(14:25 +0200)
[Feature] If native api return PUSH_SERVICE_ERROR_NO_DATA
in JS layer null object should be returned.
[Verification] Code compiles.
Change-Id: Id34aaacf5494208ae022ef4403cdbf9dac212860
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/push/push_api.js
patch
|
blob
|
history
diff --git
a/src/push/push_api.js
b/src/push/push_api.js
index 8b36f7ad768d1fe1039d32084b16eac85ca91a01..afa13787e791b58c74638204d2112267537a9420 100644
(file)
--- a/
src/push/push_api.js
+++ b/
src/push/push_api.js
@@
-168,7
+168,8
@@
PushManager.prototype.getPushMessage = function() {
if (native.isFailure(ret)) {
throw native.getErrorObject(ret);
} else {
- return new PushMessage(native.getResultObject(ret));
+ var message = native.getResultObject(ret);
+ return message ? new PushMessage(message) : null;
}
};