Browse Source

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

master
Saúl Ibarra Corretgé 6 years ago
parent
commit
45b6a8b5d5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java

+ 2
- 2
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java View File

90
                 result.putString(key, (String)bValue);
90
                 result.putString(key, (String)bValue);
91
             } else if (valueType.contentEquals("Bundle")) {
91
             } else if (valueType.contentEquals("Bundle")) {
92
                 result.putBundle(key, mergeProps((Bundle)aValue, (Bundle)bValue));
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
         return result;
98
         return result;

Loading…
Cancel
Save