From b7e705b5817871e03903f08526fb1727d453a0e0 Mon Sep 17 00:00:00 2001 From: Andrei Vereha Date: Sat, 1 May 2021 20:19:11 +0200 Subject: [PATCH] fix compilation error --- .../common/ui/wizard/common/viewmodel/ActionViewModelBase.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/ui/wizard/common/viewmodel/ActionViewModelBase.kt b/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/ui/wizard/common/viewmodel/ActionViewModelBase.kt index 807cfc1aec..91ee56d19d 100644 --- a/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/ui/wizard/common/viewmodel/ActionViewModelBase.kt +++ b/omnipod-common/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/common/ui/wizard/common/viewmodel/ActionViewModelBase.kt @@ -30,7 +30,8 @@ abstract class ActionViewModelBase( onError = { throwable -> logger.error(LTag.PUMP, "Caught exception in while executing action in ActionViewModelBase", throwable) _isActionExecutingLiveData.postValue(false) - _actionResultLiveData.postValue(PumpEnactResult(injector).success(false).comment(throwable.message)) + _actionResultLiveData.postValue(PumpEnactResult(injector).success(false).comment( + throwable.message ?: "Caught exception in while executing action in ActionViewModelBase")) }) }