Fix null pointer exception for settings

This commit is contained in:
Sebastián Katzer 2014-11-04 16:50:42 +00:00
parent dd6ed1a183
commit d0d8b9e981

View File

@ -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() {