PabbleDabble edited a comment on pull request #215:
URL: 
https://github.com/apache/cordova-plugin-media-capture/pull/215#issuecomment-887480976


   Would it be possible to add search terms / more text to this issue?  I spent 
the better part of a day tracking down an error that appears to be directly 
addressed by this PR (thank you by the way!!)
   
   In the 3.0.3 code, within `createMediaFile(Uri data)` after a video capture 
on Galaxy Tab A7 on Android 11, this line `File fp = 
webView.getResourceApi().mapUriToFile(data);` yields null (as the uri is NOT in 
the local system on this device as you noted in your issue).  
   
   Then, later in `createMediaFile(Uri data)` this line is run 
`LocalFilesystemURL url = 
filePlugin.filesystemURLforLocalPath(fp.getAbsolutePath());` and since the 
variable fp is null, you get this error in logcat...
   
   `java.lang.NullPointerException: Attempt to invoke virtual method 
'java.lang.String java.io.File.getAbsolutePath()' on a null object reference`
   
   and the plugin crashes, along with our app.  
   
   **Request:** Could some portion of the logcat error be added to the search 
terms on this page/issue?  Maybe I'm wrong, but this might be a nice way for 
others who might see this connect that error, with this issue / PR.  
   
   Sorry if this is a dumb question.  Thank you so much again for this PR!!


-- 
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.

To unsubscribe, e-mail: [email protected]

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