Merge pull request #708 from Philoul/Fix/CrashMissingTrigger

Fix crash if trigger not found (minor improvement)
This commit is contained in:
Milos Kozak 2021-10-03 18:53:07 +02:00 committed by GitHub
commit 917ecaa479
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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