Android Application Crash after Disable/enable Camera


i make a call between an interface web and an Android 7 Device

from Android device : when you disable camera it’s OK , but if you enable just after (the app Crash)

if the Android device create the room , there is no problem with enable/disable camera , but if the interface web create a room so if we disable and enable camera, the app crash

any idea about this ?

here is my code