android: fix crash if UserInfo is not set

Fixes: https://github.com/jitsi/jitsi-meet-sdk-samples/issues/11
This commit is contained in:
Saúl Ibarra Corretgé 2019-07-15 18:53:59 +02:00 committed by Saúl Ibarra Corretgé
parent da7d959b9a
commit cbc7e1b6be
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ public class JitsiMeetConferenceOptions implements Parcelable {
dest.writeString(token); dest.writeString(token);
dest.writeBundle(colorScheme); dest.writeBundle(colorScheme);
dest.writeBundle(featureFlags); dest.writeBundle(featureFlags);
dest.writeBundle(userInfo.asBundle()); dest.writeBundle(userInfo != null ? userInfo.asBundle() : new Bundle());
dest.writeByte((byte) (audioMuted == null ? 0 : audioMuted ? 1 : 2)); dest.writeByte((byte) (audioMuted == null ? 0 : audioMuted ? 1 : 2));
dest.writeByte((byte) (audioOnly == null ? 0 : audioOnly ? 1 : 2)); dest.writeByte((byte) (audioOnly == null ? 0 : audioOnly ? 1 : 2));
dest.writeByte((byte) (videoMuted == null ? 0 : videoMuted ? 1 : 2)); dest.writeByte((byte) (videoMuted == null ? 0 : videoMuted ? 1 : 2));