forked from Github/cordova-plugin-run-in-background
Fix null pointer exception for settings
This commit is contained in:
@@ -44,7 +44,7 @@ public class BackgroundMode extends CordovaPlugin {
|
|||||||
private boolean isDisabled = false;
|
private boolean isDisabled = false;
|
||||||
|
|
||||||
// Settings for the notification
|
// Settings for the notification
|
||||||
static JSONObject settings;
|
static JSONObject settings = new JSONObject();
|
||||||
|
|
||||||
// Used to (un)bind the service to with the activity
|
// Used to (un)bind the service to with the activity
|
||||||
private ServiceConnection connection = new ServiceConnection() {
|
private ServiceConnection connection = new ServiceConnection() {
|
||||||
|
|||||||
Reference in New Issue
Block a user