Explorar el Código

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

j8
Saúl Ibarra Corretgé hace 6 años
padre
commit
45b6a8b5d5

+ 2
- 2
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java Ver fichero

@@ -90,9 +90,9 @@ public class JitsiMeetView extends BaseReactView<JitsiMeetViewListener> {
90 90
                 result.putString(key, (String)bValue);
91 91
             } else if (valueType.contentEquals("Bundle")) {
92 92
                 result.putBundle(key, mergeProps((Bundle)aValue, (Bundle)bValue));
93
+            } else {
94
+                throw new RuntimeException("Unsupported type: " + valueType);
93 95
             }
94
-
95
-            // TODO: handle string arrays when the need arises.
96 96
         }
97 97
 
98 98
         return result;

Loading…
Cancelar
Guardar