Hello,

I testing the the cordova plugin and the sample cordova-plugin-abbyy-rtr-sdk-sample from github.

I test the dataCapture via:

AbbyyRtrSdk.startDataCapture(abbyyRtrSdkPluginCallback, {

profile : "BusinessCards",

});

 

If the api/ plugin recognize a business cards, then the app is restarting.

In the plugin get NullPointerException:

2019-10-07 20:04:15.134 9192-9192/com.abbyy.rtrcordovasample E/AndroidRuntime: FATAL EXCEPTION: main

    Process: com.abbyy.rtrcordovasample, PID: 9192

    java.lang.NullPointerException: Attempt to get length of null array

        at com.abbyy.mobile.rtr.cordova.surfaces.DataCaptureSurfaceView.setLines(DataCaptureSurfaceView.java:35)

        at com.abbyy.mobile.rtr.cordova.activities.DataCaptureActivity$1.onFrameProcessed(DataCaptureActivity.java:62)

        at com.abbyy.mobile.rtr.DataCaptureService$Worker$1.run(DataCaptureService.java:798)

        at android.os.Handler.handleCallback(Handler.java:873)

        at android.os.Handler.dispatchMessage(Handler.java:99)

        at android.os.Looper.loop(Looper.java:214)

        at android.app.ActivityThread.main(ActivityThread.java:6986)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)

 

Any Idea?