CameraController.ApplyCameraSettings System.NullReferenceException

HarshitaHarshita INMember ✭✭✭

while opening zxing scanner page app crashed :

CameraController.ApplyCameraSettings
android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object

Xamarin caused by: android.runtime.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
ZXing.Mobile.CameraAccess.CameraController.ApplyCameraSettings()<57b37b10a314448c8d6b2b9155539100>:0
ZXing.Mobile.CameraAccess.CameraController.RefreshCamera()<57b37b10a314448c8d6b2b9155539100>:0
ZXing.Mobile.CameraAccess.CameraAnalyzer.RefreshCamera()<57b37b10a314448c8d6b2b9155539100>:0
ZXing.Mobile.ZXingSurfaceView.<SurfaceChanged>d__5.MoveNext()<57b37b10a314448c8d6b2b9155539100>:0
Android.App.SyncContext.<>c__DisplayClass2_0.<Post>b__0()<2307420e33a04321993781fdb887a40e>:0
Java.Lang.Thread.RunnableImplementor.Run()<2307420e33a04321993781fdb887a40e>:0
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this)<2307420e33a04321993781fdb887a40e>:0
at (wrapper dynamic-method) System.Object:b5211777-9dd6-4922-9884-a00186ce32e8 (intptr,intptr)
mono.java.lang.RunnableImplementor.n_run(Native Method)
mono.java.lang.RunnableImplementor.run()RunnableImplementor.java:30
android.os.Handler.handleCallback()Handler.java:739
android.os.Handler.dispatchMessage()Handler.java:95
android.os.Looper.loop()Looper.java:135
android.app.ActivityThread.main()ActivityThread.java:5276
java.lang.reflect.Method.invoke(Native Method)
java.lang.reflect.Method.invoke()Method.java:372
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()ZygoteInit.java:911
com.android.internal.os.ZygoteInit.main()ZygoteInit.java:706

how to solve this?

Answers

Sign In or Register to comment.