Skip to content

NullPointerException with P8Lite and API 21  #5

@mdenhartog

Description

@mdenhartog

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions