maochong513 commented on issue #665:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/665#issuecomment-757657146


   Hi @PieterVanPoyer 
   
   test step: 
   1
   ```
   cordova plugin remove cordova-plugin-camera
   cordova plugin add https://github.com/apache/cordova-plugin-camera.git
   cordova plugin ls
   ```
   2
   ```
   cordova-plugin-camera 5.0.2-dev "Camera"
   cordova-plugin-whitelist 1.3.4 "Whitelist"
   ```
   **### The problem appeared after four or five pictures had been taken**
   
   **Information**
   
   ```
   2021-01-11 14:33:52.224 12169-12169/com.pvpoyer.cameraplugintesting 
E/AndroidRuntime: FATAL EXCEPTION: main
       Process: com.pvpoyer.cameraplugintesting, PID: 12169
       java.lang.RuntimeException: Unable to resume activity 
{com.pvpoyer.cameraplugintesting/com.pvpoyer.cameraplugintesting.MainActivity}: 
java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, 
request=34, result=-1, data=null} to activity 
{com.pvpoyer.cameraplugintesting/com.pvpoyer.cameraplugintesting.MainActivity}: 
java.lang.NullPointerException: filename cannot be null
           at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4626)
           at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4659)
           at 
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
           at 
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
           at 
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
           at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2261)
           at android.os.Handler.dispatchMessage(Handler.java:107)
           at android.os.Looper.loop(Looper.java:237)
           at android.app.ActivityThread.main(ActivityThread.java:8107)
           at java.lang.reflect.Method.invoke(Native Method)
           at 
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
        Caused by: java.lang.RuntimeException: Failure delivering result 
ResultInfo{who=null, request=34, result=-1, data=null} to activity 
{com.pvpoyer.cameraplugintesting/com.pvpoyer.cameraplugintesting.MainActivity}: 
java.lang.NullPointerException: filename cannot be null
           at 
android.app.ActivityThread.deliverResults(ActivityThread.java:5324)
           at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4613)
           at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4659) 
           at 
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
 
           at 
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
 
           at 
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
 
           at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2261) 
           at android.os.Handler.dispatchMessage(Handler.java:107) 
           at android.os.Looper.loop(Looper.java:237) 
           at android.app.ActivityThread.main(ActivityThread.java:8107) 
           at java.lang.reflect.Method.invoke(Native Method) 
           at 
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
 
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100) 
        Caused by: java.lang.NullPointerException: filename cannot be null
           at android.media.ExifInterface.<init>(ExifInterface.java:1390)
           at 
org.apache.cordova.camera.ExifHelper.createInFile(ExifHelper.java:56)
           at 
org.apache.cordova.camera.CameraLauncher.processResultFromCamera(CameraLauncher.java:481)
           at 
org.apache.cordova.camera.CameraLauncher.onActivityResult(CameraLauncher.java:828)
           at 
org.apache.cordova.CordovaInterfaceImpl.onActivityResult(CordovaInterfaceImpl.java:159)
           at 
org.apache.cordova.CordovaActivity.onActivityResult(CordovaActivity.java:361)
           at android.app.Activity.dispatchActivityResult(Activity.java:8294)
           at 
android.app.ActivityThread.deliverResults(ActivityThread.java:5317)
           at 
android.app.ActivityThread.performResumeActivity(ActivityThread.java:4613) 
           at 
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4659) 
           at 
android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52)
 
           at 
android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
 
           at 
android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
 
           at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:2261) 
           at android.os.Handler.dispatchMessage(Handler.java:107) 
           at android.os.Looper.loop(Looper.java:237) 
           at android.app.ActivityThread.main(ActivityThread.java:8107) 
           at java.lang.reflect.Method.invoke(Native Method) 
           at 
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
 
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
   ```
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to