react-native-text-detector icon indicating copy to clipboard operation
react-native-text-detector copied to clipboard

Attempt to invoke virtual method

Open bymuh opened this issue 4 years ago • 1 comments

 java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.ml.vision.text.FirebaseVisionTextRecognizer.processImage(com.google.firebase.ml.vision.common.FirebaseVisionImage)' on a null object reference
        at com.fetchsky.RNTextDetector.RNTextDetectorModule.detectFromUri(RNTextDetectorModule.java:49)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loop(Looper.java:237)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
        at java.lang.Thread.run(Thread.java:919)

bymuh avatar Nov 26 '20 11:11 bymuh

Hi , have you found the solution? I am facing the same issue.

mukesh1430 avatar Jul 17 '21 14:07 mukesh1430