From d6dd03a06514c59357046db8bc3133b072e033fe Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 28 Jan 2017 17:45:23 +0100 Subject: [PATCH] Pebble: webview add safety check --- .../freeyourgadget/gadgetbridge/util/WebViewSingleton.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java index 8a2786f3e..d7b8e7750 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/WebViewSingleton.java @@ -110,6 +110,8 @@ public class WebViewSingleton extends Activity { public static void appMessage(final String message) { + if (instance == null) + return; final String appMessage = jsInterface.parseIncomingAppMessage(message); LOG.debug("to WEBVIEW: " + appMessage);