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 2019/03/01 04:50:57 UTC
[GitHub] hazems opened a new pull request #429: (Android) Fix
NullPointerException error on some Android phones
hazems opened a new pull request #429: (Android) Fix NullPointerException error on some Android phones
URL: https://github.com/apache/cordova-plugin-camera/pull/429
### Platforms affected
Android
### Motivation and Context
Fix NullPointerException error on some Android phones.
### Description
In some Android phones, `mimeType` is returned as `null`, this is why a NullPointerException is thrown.
### Solution
Add a safe null checking before `equalsIgnoreCase`.
### Checklist
- [x] I've run the tests to see all new and existing tests pass
- [x] Commit is prefixed with `(platform)` if this change only applies to one platform (e.g. `(android)`)
----------------------------------------------------------------
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