Skip to content

Commit

Permalink
[fix] a NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangdg committed Jul 25, 2022
1 parent dd04192 commit 1fddd12
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ abstract class MultiCameraFragment: BaseFragment() {
mCameraClient = MultiCameraClient(requireContext(), object : IDeviceConnectCallBack {
override fun onAttachDev(device: UsbDevice?) {
device ?: return
context ?: return
if (mCameraMap.containsKey(device.deviceId)) {
return
}
Expand Down

0 comments on commit 1fddd12

Please sign in to comment.