fix crash

This commit is contained in:
Milos Kozak 2023-08-20 18:48:14 +02:00
parent 095d65e79d
commit 55104236ff

View file

@ -222,6 +222,7 @@ class AutomationPlugin @Inject constructor(
} }
internal fun processActions() { internal fun processActions() {
if (!config.appInitialized) return
var commonEventsEnabled = true var commonEventsEnabled = true
if (loop.isSuspended || !(loop as PluginBase).isEnabled()) { if (loop.isSuspended || !(loop as PluginBase).isEnabled()) {
aapsLogger.debug(LTag.AUTOMATION, "Loop deactivated") aapsLogger.debug(LTag.AUTOMATION, "Loop deactivated")