Sfoglia il codice sorgente

android: fix crash if UserInfo is not set

Fixes: https://github.com/jitsi/jitsi-meet-sdk-samples/issues/11
master
Saúl Ibarra Corretgé 6 anni fa
parent
commit
cbc7e1b6be

+ 1
- 1
android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetConferenceOptions.java Vedi File

341
         dest.writeString(token);
341
         dest.writeString(token);
342
         dest.writeBundle(colorScheme);
342
         dest.writeBundle(colorScheme);
343
         dest.writeBundle(featureFlags);
343
         dest.writeBundle(featureFlags);
344
-        dest.writeBundle(userInfo.asBundle());
344
+        dest.writeBundle(userInfo != null ? userInfo.asBundle() : new Bundle());
345
         dest.writeByte((byte) (audioMuted == null ? 0 : audioMuted ? 1 : 2));
345
         dest.writeByte((byte) (audioMuted == null ? 0 : audioMuted ? 1 : 2));
346
         dest.writeByte((byte) (audioOnly == null ? 0 : audioOnly ? 1 : 2));
346
         dest.writeByte((byte) (audioOnly == null ? 0 : audioOnly ? 1 : 2));
347
         dest.writeByte((byte) (videoMuted == null ? 0 : videoMuted ? 1 : 2));
347
         dest.writeByte((byte) (videoMuted == null ? 0 : videoMuted ? 1 : 2));

Loading…
Annulla
Salva