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/12/27 10:24:15 UTC
[GitHub] mifkys opened a new issue #400: NullPointerException error on some
Android phones
mifkys opened a new issue #400: NullPointerException error on some Android phones
URL: https://github.com/apache/cordova-plugin-camera/issues/400
Hello. I receive few crash logs from some Android phones with next error:
> java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equalsIgnoreCase(java.lang.String)' on a null object reference
> at org.apache.cordova.camera.CameraLauncher.processResultFromGallery(CameraLauncher.java:702)
> at org.apache.cordova.camera.CameraLauncher.access$000(CameraLauncher.java:74)
> at org.apache.cordova.camera.CameraLauncher$1.run(CameraLauncher.java:833)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
> at java.lang.Thread.run(Thread.java:818)
Using latest version of plugin.
Code:
```
let cameraOptions = {
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE
}
this.camera.getPicture(cameraOptions).then(uri => {
…
}).catch(err => {
….
});
```
App crashed on this phones:
Huawei GR3
Huawei Y3III
Android 5.1
Android 6.0
----------------------------------------------------------------
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