-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on AWSCredentialsProviderHolder.getCredentials() #247
Comments
The issue looks like it is happening only on the first run of the application and even than it is random. To reproduce that i tried many times , install , run and than uninstall and than the same again until i would get the crash in my device. |
A likely root cause synchronization issue has been identified related to this issue. We will update this issue again once the issue has been corrected. |
This synchronization issue has been corrected in AWS SDK for Android 2.3.9 Release. See the release notes for more details: https://aws.amazon.com/releasenotes/1894188094590101 |
i have problem can you help my problem sir Attempt to invoke virtual method 'com.savvi.rangedatepicker.CalendarPickerView$FluentInitializer com.savvi.rangedatepicker.CalendarPickerView.init(java.util.Date, java.util.Date)' on a null |
Greetings,
We have implemented the sdk in android and we currently have some random crashes with te sdk internal code. A call is made to AWSCredentialsProviderHolder.getCredentials() and it results in a NullPointerException which is not caught or handled. We can add a try catch ourselves at "com.amazonaws.mobile.user.IdentityManager$AWSCredentialsProviderHolder.getCredentials(IdentityManager.java:61)", but than we do not know what would be the consequences and what we should return in that method if the Exception happens. Please provide us with a solution or workaround for the time being.
E/AndroidRuntime: FATAL EXCEPTION: pool-4-thread-1 Process: de.rtl2apps.berlintn, PID: 11479 java.lang.NullPointerException: Attempt to invoke virtual method 'long java.util.Date.getTime()' on a null object reference at com.amazonaws.auth.CognitoCachingCredentialsProvider.getCredentials(CognitoCachingCredentialsProvider.java:456) at com.amazonaws.mobile.user.IdentityManager$AWSCredentialsProviderHolder.getCredentials(IdentityManager.java:61) at com.amazonaws.services.pinpoint.AmazonPinpointClient.invoke(AmazonPinpointClient.java:1783) at com.amazonaws.services.pinpoint.AmazonPinpointClient.updateEndpoint(AmazonPinpointClient.java:1594) at com.amazonaws.mobileconnectors.pinpoint.targeting.TargetingClient$1.run(TargetingClient.java:173) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)
The text was updated successfully, but these errors were encountered: