From: Pawel Andruszkiewicz
Date: Fri, 15 May 2015 06:47:54 +0000 (+0200)
Subject: [Contact] Added missing return in case of error in AddressBook.find().
X-Git-Tag: submit/tizen_tv/20150603.064601~1^2~14
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0f50d2b8ceb43ffd062c94a945364f76c001ed7;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git
[Contact] Added missing return in case of error in AddressBook.find().
Change-Id: I7053c164102371c7e860ee61531f6efba0202ad2
Signed-off-by: Pawel Andruszkiewicz
---
diff --git a/src/contact/js/address_book.js b/src/contact/js/address_book.js
index 7ca2ec41..31520486 100644
--- a/src/contact/js/address_book.js
+++ b/src/contact/js/address_book.js
@@ -486,6 +486,7 @@ AddressBook.prototype.find = function(successCallback, errorCallback, filter, so
var callback = function(result) {
if (native_.isFailure(result)) {
native_.callIfPossible(errorCallback, native_.getErrorObject(result));
+ return;
}
var _contacts = [];