You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/15 11:32:49 UTC

[GitHub] dGodinho opened a new issue #115: Audio Capture NullPointerException

dGodinho opened a new issue #115: Audio Capture NullPointerException
URL: https://github.com/apache/cordova-plugin-media-capture/issues/115
 
 
   Good morning,
   
   As far as i know, on android, only 2 apps support this pluggin (act = android.provider.MediaStore.RECORD_SOUND). 
   - Audio Recorder from sony
   - Samsung Voice Recorder
   
   There are any more app that can run this plugin properly?
   
   All seems working with the samsung voice record, but when i use the audio record from sony i get this error:
   
   ```
   11-15 11:20:02.150 13109-13170/com.horus.enterprise E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-2
       Process: com.horus.enterprise, PID: 13109
       java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
           at org.apache.cordova.mediacapture.Capture.createMediaFile(Capture.java:454)
           at org.apache.cordova.mediacapture.Capture.onAudioActivityResult(Capture.java:369)
           at org.apache.cordova.mediacapture.Capture$1.run(Capture.java:326)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
           at java.lang.Thread.run(Thread.java:761)
   ```
   
   
   Im using
   - cordova 8.1.2 (cordova-lib@8.1.1)
   - android 7.1.2
   - cordova-plugin-camera 4.0.3 "Camera"
   - cordova-plugin-device 2.0.2 "Device"
   - cordova-plugin-file 6.0.1 "File"
   - cordova-plugin-media-capture 3.0.2 "Capture"
   - cordova-plugin-whitelist 1.3.3 "Whitelist"
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org