forcedotcom / SalesforceMobileSDK-Android

Android SDK for Salesforce
Other
342 stars 388 forks source link

app crashes after authentication #1958

Closed riquier closed 5 years ago

riquier commented 5 years ago

Our React Native Android app crashes since upgrading to 7.2.0 with a null pointer exception (as below). We have resolved the problem temporarily by reverting the following commits locally:

  1. Version of Mobile SDK Used: 7.2.0
  2. Issue found in React Native App
  3. OS Version: Android
  4. Device: Various
  5. Steps to reproduce: -- Open app, redirects to the Salesforce login screen -- Complete login flow (password, 2FA etc)
  6. Actual behavior: upon redirecting back to our app the app crashes with a null pointer exception and does not retain the login or open the app.
  7. Expected Behavior: The app opens with authentication as provided.
  8. Error Log: There was a null pointer exception at SalesforceSDK/src/com/salesforce/androidsdk/secruity/SalesforceKeyGenerator.java at line 103: CACHED_ENCRYPTION_KEYS.put(name, encryptionKey);
bhariharan commented 5 years ago

Thanks for reporting, @riquier. I'll take a look. Could you please post the full stack trace of the crash?

bhariharan commented 5 years ago

@riquier This PR should fix it. It'll be in our next release, Mobile SDK 7.3.

riquier commented 5 years ago

Thanks @bhariharan