From dc93556ef07e4ec745ca6d3ed64093f81fa47967 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Thu, 15 Mar 2012 14:29:25 -0700 Subject: [PATCH] Checking for the callback server before we call sendJavascript for the Kindle Fire, CB-247 --- framework/src/org/apache/cordova/DroidGap.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index 8513eea6..4cbdcc27 100755 --- a/framework/src/org/apache/cordova/DroidGap.java +++ b/framework/src/org/apache/cordova/DroidGap.java @@ -952,7 +952,9 @@ public class DroidGap extends Activity implements CordovaInterface { * @param message */ public void sendJavascript(String statement) { - this.callbackServer.sendJavascript(statement); + //We need to check for the null case on the Kindle Fire beacuse it changes the width and height on load + if(this.callbackServer != null) + this.callbackServer.sendJavascript(statement); } /**