Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Avoid crash if OnPreviewFrame data argument is null or IntPtr.Zero #941

Merged
merged 1 commit into from
Jan 18, 2021

Conversation

mcortecchia
Copy link
Contributor

Avoid crash if OnPreviewFrame data argument is null or IntPtr.Zero

Got crash on LG G7 thinQ:

System.ArgumentNullException: Value cannot be null. Parameter name: handle
ApxLabs.FastAndroidCamera.FastJavaByteArray..ctor (System.IntPtr handle, System.Boolean readOnly) [0x00016] in <9f646a7d069141bb922b3d2db31483e1>:0 CameraEventsListener.OnPreviewFrame (System.IntPtr data, Android.Hardware.Camera camera) INonMarshalingPreviewCallbackInvoker.n_OnPreviewFrame_arrayBLandroid_hardware_Camera_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_data, System.IntPtr native_camera) (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.128(intptr,intptr,intptr,intptr)

Avoid crash if OnPreviewFrame data argument is null or IntPtr.Zero
@mcortecchia mcortecchia changed the title Update CameraEventsListener.android.cs [Android] Avoid crash if OnPreviewFrame data argument is null or IntPtr.Zero Sep 14, 2020
@Redth Redth merged commit 10844dc into Redth:master Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants