Checking for the callback server before we call sendJavascript for the Kindle Fire, CB-247

This commit is contained in:
Joe Bowser 2012-03-15 14:29:25 -07:00
parent 692a59a692
commit dc93556ef0

View File

@ -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);
}
/**