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

This commit is contained in:
Saúl Ibarra Corretgé 2019-03-12 11:52:07 +01:00
parent 26ca0e6630
commit 45b6a8b5d5
1 changed files with 2 additions and 2 deletions

View File

@ -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;