fix null object reference

This commit is contained in:
Milos Kozak 2017-02-22 15:23:16 +01:00
parent 87ad140eb5
commit d9225ccc8a

View file

@ -160,7 +160,7 @@ public class SmsCommunicatorPlugin implements PluginBase {
@Subscribe
public void processSettings(final EventPreferenceChange ev) {
if (ev.isChanged(R.string.key_smscommunicator_allowednumbers)) {
if (ev == null || ev.isChanged(R.string.key_smscommunicator_allowednumbers)) {
String settings = SP.getString(R.string.key_smscommunicator_allowednumbers, "");
String pattern = ";";