Skip to content

Commit 203a7d2

Browse files
committed
fix: Screen-Set onHide callback nullable reason incorrect handling.
1 parent cc38624 commit 203a7d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/main/kotlin/com/sap/gigya_flutter_plugin/GigyaSDKWrapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ class GigyaSDKWrapper<T : GigyaAccount>(application: Application, accountObj: Cl
757757

758758
override fun onHide(event: GigyaPluginEvent, reason: String?) {
759759
val data = event.eventMap.toMutableMap()
760-
data["reason"] = reason!!
761-
760+
data["reason"] = reason ?: "unknown"
761+
762762
handler.addScreenSetEvent(
763763
mapOf(
764764
"event" to "onHide",

0 commit comments

Comments
 (0)