From d0d8b9e9815c1f837ef8149889f03c75fd92f82e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Katzer?= Date: Tue, 4 Nov 2014 16:50:42 +0000 Subject: [PATCH] Fix null pointer exception for settings --- src/android/BackgroundMode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/BackgroundMode.java b/src/android/BackgroundMode.java index 0b89c17..6d612d4 100644 --- a/src/android/BackgroundMode.java +++ b/src/android/BackgroundMode.java @@ -44,7 +44,7 @@ public class BackgroundMode extends CordovaPlugin { private boolean isDisabled = false; // Settings for the notification - static JSONObject settings; + static JSONObject settings = new JSONObject(); // Used to (un)bind the service to with the activity private ServiceConnection connection = new ServiceConnection() {