Fixed cannot start service NPE
This commit is contained in:
parent
6e57c13cd1
commit
5346e21faa
@ -136,6 +136,7 @@ public class Daedalus extends Application {
|
|||||||
if (Daedalus.getPrefs().getBoolean("settings_local_rules_resolution", false)) {
|
if (Daedalus.getPrefs().getBoolean("settings_local_rules_resolution", false)) {
|
||||||
ArrayList<String> pendingLoad = new ArrayList<>();
|
ArrayList<String> pendingLoad = new ArrayList<>();
|
||||||
ArrayList<Rule> usingRules = configurations.getUsingRules();
|
ArrayList<Rule> usingRules = configurations.getUsingRules();
|
||||||
|
if (usingRules != null && usingRules.size() > 0) {
|
||||||
for (Rule rule : usingRules) {
|
for (Rule rule : usingRules) {
|
||||||
if (rule.isUsing()) {
|
if (rule.isUsing()) {
|
||||||
pendingLoad.add(rulesPath + rule.getFileName());
|
pendingLoad.add(rulesPath + rule.getFileName());
|
||||||
@ -155,6 +156,7 @@ public class Daedalus extends Application {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static SharedPreferences getPrefs() {
|
public static SharedPreferences getPrefs() {
|
||||||
return getInstance().prefs;
|
return getInstance().prefs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user