From 55104236ffc8a1de6c264fa13301aa623ea346de Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 20 Aug 2023 18:48:14 +0200 Subject: [PATCH] fix crash --- .../src/main/java/info/nightscout/automation/AutomationPlugin.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/automation/src/main/java/info/nightscout/automation/AutomationPlugin.kt b/plugins/automation/src/main/java/info/nightscout/automation/AutomationPlugin.kt index 422ff20022..eb894dbd0a 100644 --- a/plugins/automation/src/main/java/info/nightscout/automation/AutomationPlugin.kt +++ b/plugins/automation/src/main/java/info/nightscout/automation/AutomationPlugin.kt @@ -222,6 +222,7 @@ class AutomationPlugin @Inject constructor( } internal fun processActions() { + if (!config.appInitialized) return var commonEventsEnabled = true if (loop.isSuspended || !(loop as PluginBase).isEnabled()) { aapsLogger.debug(LTag.AUTOMATION, "Loop deactivated")