From d9225ccc8a2ca137002814437c18aa34070893a1 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 22 Feb 2017 15:23:16 +0100 Subject: [PATCH] fix null object reference --- .../plugins/SmsCommunicator/SmsCommunicatorPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java index 02d09d6ecc..1dfa9ed2ac 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/SmsCommunicator/SmsCommunicatorPlugin.java @@ -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 = ";";