From 9c2e4cfd9c297b94741529911713655d64d25a77 Mon Sep 17 00:00:00 2001
From: Bryce Curtis <curtis.bryce@gmail.com>
Date: Thu, 16 Sep 2010 11:28:52 -0500
Subject: [PATCH] Check to make sure result was returned to eliminate parse
 warning messages.

---
 framework/assets/js/phonegap.js.base | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/assets/js/phonegap.js.base b/framework/assets/js/phonegap.js.base
index b3a09655..af0fb556 100755
--- a/framework/assets/js/phonegap.js.base
+++ b/framework/assets/js/phonegap.js.base
@@ -289,7 +289,7 @@ PhoneGap.execAsync = function(success, fail, clazz, action, args) {
         var r = PluginManager.exec(clazz, action, callbackId, this.stringify(args), true);
         
         // If a result was returned
-        if (typeof r == "string") {
+        if ((typeof r == "string") && (r.length > 0)) {
             eval("var v="+r+";");
         
             // If status is OK, then return value back to caller