Bug P2
Status Update
Comments
da...@google.com <da...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
da...@google.com <da...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
commit 168d2c90f6a88ff922d2ea72ac3a932c900e590b
Author: Daniel Angell <danielangell@google.com>
Date: Thu Oct 13 14:50:01 2022
Improve error reporting for getDecryptedObject()
Bug: 241699427
Test: Test suite passes. Difficult to add tests for specifically.
Change-Id: If6438b611a5a9ead4ae462cfa79f266ca65bc50d
M security/security-crypto/src/main/java/androidx/security/crypto/EncryptedSharedPreferences.java
https://android-review.googlesource.com/2254976
Branch: androidx-main
commit 168d2c90f6a88ff922d2ea72ac3a932c900e590b
Author: Daniel Angell <danielangell@google.com>
Date: Thu Oct 13 14:50:01 2022
Improve error reporting for getDecryptedObject()
Bug: 241699427
Test: Test suite passes. Difficult to add tests for specifically.
Change-Id: If6438b611a5a9ead4ae462cfa79f266ca65bc50d
M security/security-crypto/src/main/java/androidx/security/crypto/EncryptedSharedPreferences.java
Description
Version used: 1.0.0
Devices/Android versions reproduced on: Redmi Note 10S/11
Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Enum.ordinal()' on a null object reference
at androidx.security.crypto.EncryptedSharedPreferences.getDecryptedObject(EncryptedSharedPreferences.java:507)
at androidx.security.crypto.EncryptedSharedPreferences.getString(EncryptedSharedPreferences.java:380)
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).