mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-04 08:15:02 -05:00
nullpointer check in KeychainProvider
This commit is contained in:
parent
f18a8a20ac
commit
6eb715a5d9
@ -280,6 +280,10 @@ public class KeychainProvider extends ContentProvider {
|
|||||||
+ " < " + new Date().getTime() / 1000 + ") AS " + KeyRings.IS_EXPIRED);
|
+ " < " + new Date().getTime() / 1000 + ") AS " + KeyRings.IS_EXPIRED);
|
||||||
qb.setProjectionMap(projectionMap);
|
qb.setProjectionMap(projectionMap);
|
||||||
|
|
||||||
|
if (projection == null) {
|
||||||
|
Log.e(Constants.TAG, "Please provide a projection!");
|
||||||
|
}
|
||||||
|
|
||||||
// Need this as list so we can search in it
|
// Need this as list so we can search in it
|
||||||
List<String> plist = Arrays.asList(projection);
|
List<String> plist = Arrays.asList(projection);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user