Closed JohnsonEricAtSalesforce closed 2 months ago
2 Warnings | |
---|---|
:warning: | libs/SalesforceSDK/src/com/salesforce/androidsdk/accounts/UserAccountManager.java#L106 - Do not place Android context classes in static fields (static reference to UserAccountManager which has field context pointing to Context ); this is a memory leak |
:warning: | libs/SalesforceSDK/src/com/salesforce/androidsdk/accounts/UserAccountManager.java#L147 - Consider using apply() instead; commit writes its data to persistent storage immediately, whereas apply will handle it in the background |
Generated by :no_entry_sign: Danger
🎸 Ready For Review 🥁
This guards for a reported null pointer crash in the biometric authentication manager. Though, it does not solve for why an Android
Account
exists that aUserAccount
cannot be derived from. Potentially, more research would be needed inUserAccountManager.buildUserAccount(Account)
to identify the gap or to gather metrics related to the actualAccount
data at runtime. The immediate goal is to reduce the impact of the observed crashes and improve the user experience. Here's a follow-up work item for that effort: W-15381271: -MSDK Android- Android Account Is Sometimes Null In BiometricAuthenticationManager shouldLock