Fix Crash if a missing trigger is found

This commit is contained in:
Philoul 2021-09-29 21:58:58 +02:00
parent b2c45d0a26
commit b636eb785b

View file

@ -141,7 +141,7 @@ abstract class Trigger(val injector: HasAndroidInjector) {
TriggerWifiSsid::class.java.simpleName -> TriggerWifiSsid(injector).fromJSON(
data.toString()
)
else -> throw ClassNotFoundException(type)
else -> TriggerConnector(injector)
}
}