-
Notifications
You must be signed in to change notification settings - Fork 5
Description
With API 21 I get the following NullPointerException. Other versions of the API are working correctly.
Simply executing the following code :
R2d2 r2d2 = new R2d2(getApplicationContext());
// Save token encrypted
String encrypted = r2d2.encryptData("testToken");
10-31 01:23:05.538: E/AndroidRuntime(22861): java.lang.NullPointerException: chain == null
10-31 01:23:05.538: E/AndroidRuntime(22861): at java.security.KeyStore$PrivateKeyEntry.(KeyStore.java:1206)
10-31 01:23:05.538: E/AndroidRuntime(22861): at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:374)
10-31 01:23:05.538: E/AndroidRuntime(22861): at java.security.KeyStore.getEntry(KeyStore.java:645)
10-31 01:23:05.538: E/AndroidRuntime(22861): at com.moldedbits.r2d2.R2d2.encryptDataJ(R2d2.java:259)
10-31 01:23:05.538: E/AndroidRuntime(22861): at com.moldedbits.r2d2.R2d2.encryptData(R2d2.java:226)
10-31 01:23:05.538: E/AndroidRuntime(22861): at