nullpointer check in KeychainProvider

This commit is contained in:
Dominik Schürmann 2014-09-11 13:13:35 +02:00
parent f18a8a20ac
commit 6eb715a5d9
1 changed files with 4 additions and 0 deletions

View File

@ -280,6 +280,10 @@ public class KeychainProvider extends ContentProvider {
+ " < " + new Date().getTime() / 1000 + ") AS " + KeyRings.IS_EXPIRED);
qb.setProjectionMap(projectionMap);
if (projection == null) {
Log.e(Constants.TAG, "Please provide a projection!");
}
// Need this as list so we can search in it
List<String> plist = Arrays.asList(projection);