Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

android: throw if a unsupported type makes it to the props Bundle

Saúl Ibarra Corretgé45b6a8b5d522
diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
index 8ffc11403e..0306b50b6f 100644
--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
@@ -90,9 +90,9 @@ public class JitsiMeetView extends BaseReactView<JitsiMeetViewListener> {
result.putString(key, (String)bValue);
} else if (valueType.contentEquals("Bundle")) {
result.putBundle(key, mergeProps((Bundle)aValue, (Bundle)bValue));
+ } else {
+ throw new RuntimeException("Unsupported type: " + valueType);
}
-
- // TODO: handle string arrays when the need arises.
}
return result;