Skip to content

Commit c1bc2a2

Browse files
authored
Invoke onError when not null (#1243)
1 parent ef230f9 commit c1bc2a2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

stream-video-android-ui-core/src/main/kotlin/io/getstream/video/android/ui/common/StreamCallActivity.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -779,11 +779,13 @@ public abstract class StreamCallActivity : ComponentActivity() {
779779

780780
if (cid == null) {
781781
val e = IllegalArgumentException("CallActivity started without call ID.")
782-
logger.e(
783-
e,
784-
) { "Failed to initialize call because call ID is not found in the intent. $intent" }
785-
onError?.let {
786-
} ?: throw e
782+
783+
logger.e(e) {
784+
"Failed to initialize call because call ID is not found in the intent. $intent"
785+
}
786+
787+
onError?.invoke(e) ?: throw e
788+
787789
// Finish
788790
return
789791
}

0 commit comments

Comments
 (0)