Android zccsdk sample app crash

Hello,

I was using sample native Android application from Zoom Contact Center SDK, versions 3.8.0.387 and 3.9.0.394. The app crashes when trying to connect to the Contact Center.

Can you please assist me with solving the issue?

My steps:

  1. Launch the app.

  2. Invoke the following code:

    var service = ZoomCCInterface.INSTANCE.getZoomCCVideoService();
    service.init(new ZoomCCItem(entryId, apiKey, ZoomCCIInterfaceType.VIDEO, CCServerType.CCServerWWW));
    service.fetchUI();

  3. Page appears with a Loading indicator.

  4. Popup appears.

  5. Enter name.

  6. Press “Next”.

  7. Popup closes.

  8. App crashes within a few seconds.

FATAL EXCEPTION:

java.util.NoSuchElementException: List is empty.
at kotlin.collections.CollectionsKt___CollectionsKt.first(_Collections.kt:214)
at us.zoom.contactscenter.fragment.CCWaitingRoomFragment$initLiveData$5.invoke(CCWaitingRoomFragment.kt:24)
at us.zoom.contactscenter.fragment.CCWaitingRoomFragment$initLiveData$5.invoke(CCWaitingRoomFragment.kt:1)
at us.zoom.contactscenter.fragment.CCWaitingRoomFragment.cciif(CCWaitingRoomFragment.kt:2314)
at us.zoom.contactscenter.fragment.CCWaitingRoomFragment$$ExternalSyntheticLambda24.onChanged(Unknown Source:2)
at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:151)
at androidx.lifecycle.LiveData.setValue(LiveData.java:309)
at androidx.lifecycle.MutableLiveData.setValue(MutableLiveData.java:50)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel.ccido(CCWaitingRoomViewModel.kt:2)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel.ccido(CCWaitingRoomViewModel.kt:19)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel.ccido(CCWaitingRoomViewModel.kt:1)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel$1.invoke(CCWaitingRoomViewModel.kt:2)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel$1.invoke(CCWaitingRoomViewModel.kt:1)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel.ccido(CCWaitingRoomViewModel.kt:16)
at us.zoom.contactscenter.viewmodel.video.CCWaitingRoomViewModel$$ExternalSyntheticLambda0.onChanged(Unknown Source:2)
at androidx.lifecycle.MediatorLiveData$Source.onChanged(MediatorLiveData.java:171)
at androidx.lifecycle.LiveData.considerNotify(LiveData.java:133)
at androidx.lifecycle.LiveData.dispatchingValue(LiveData.java:146)
at androidx.lifecycle.LiveData$ObserverWrapper.activeStateChanged(LiveData.java:483)
at androidx.lifecycle.LiveData.observeForever(LiveData.java:234)
at androidx.lifecycle.MediatorLiveData$Source.plug(MediatorLiveData.java:160)
at androidx.lifecycle.MediatorLiveData.onActive(MediatorLiveData.java:137)
at androidx.lifecycle.LiveData.changeActiveCounter(LiveData.java:405)
at androidx.lifecycle.LiveData$ObserverWrapper.activeStateChanged(LiveData.java:481)
at androidx.lifecycle.LiveData$LifecycleBoundObserver.onStateChanged(LiveData.java:440)
at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.kt:322)
at androidx.lifecycle.LifecycleRegistry.forwardPass(LifecycleRegistry.kt:258)
at androidx.lifecycle.LifecycleRegistry.sync(LifecycleRegistry.kt:294)
at androidx.lifecycle.LifecycleRegistry.moveToState(LifecycleRegistry.kt:143)
at androidx.lifecycle.LifecycleRegistry.handleLifecycleEvent(LifecycleRegistry.kt:126)
at androidx.fragment.app.FragmentViewLifecycleOwner.handleLifecycleEvent(FragmentViewLifecycleOwner.java:100)
at androidx.fragment.app.Fragment.performStart(Fragment.java:3194)
at androidx.fragment.app.FragmentStateManager.start(FragmentStateManager.java:628)
at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:290)
at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1943)
at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1845)
at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:565)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:8010)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)