SM-N976N Android OS 10 버전에서
카메라 스위치를 동작하면 exception 발생합니다.
java.lang.NullPointerException: Attempt to get length of null array
at org.webrtc.Camera2Enumerator.convertSizes(Camera2Enumerator.java:231)
at org.webrtc.Camera2Enumerator.getSupportedSizes(Camera2Enumerator.java:146)
at org.webrtc.Camera2Session.findCaptureFormat(Camera2Session.java:327)
at org.webrtc.Camera2Session.start(Camera2Session.java:315)
at org.webrtc.Camera2Session.(Camera2Session.java:298)
at org.webrtc.Camera2Session.create(Camera2Session.java:276)
at org.webrtc.Camera2Capturer.createCameraSession(Camera2Capturer.java:35)
at org.webrtc.CameraCapturer$5.run(CameraCapturer.java:270)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:237)
at android.os.HandlerThread.run(HandlerThread.java:67)
해당 오류 수정 방법을 문의 드립니다.