Giter Club home page Giter Club logo

Comments (6)

jpobst avatar jpobst commented on June 13, 2024 1

When the new Java version is released, our process will automatically find it and bind the new version as part of the regular periodic updates process. So there's nothing additional that we need to do to fix this issue.

from androidx.

mahdisafe avatar mahdisafe commented on June 13, 2024

he runtime exception you are encountering, java.lang.NullPointerException, suggests that a parameter specified as non-null is actually null during the execution of the method onResult in the CredentialProviderFrameworkImpl$onClearCredential$outcome$1 class.

To resolve this issue, you need to investigate why the parameter response is null when it is expected to be non-null. Here are some steps you can take to debug and resolve the issue:

Check Parameter Initialization: Ensure that any parameters being passed to the onResult method are properly initialized before calling the method.

Review Callback Implementation: Review the implementation of the onResult method in the CredentialProviderFrameworkImpl$onClearCredential$outcome$1 class. Verify that it handles all possible scenarios and does not assume that the response parameter will always be non-null.

Check Caller Code: Review the code where you invoke the _credentialManager.ClearCredentialState or _credentialManager.ClearCredentialStateAsync methods. Make sure that you are handling the response properly and that it is not null before passing it to any callback methods.

Check AndroidX Credentials Library Version: Ensure that you are using the latest version of the AndroidX Credentials library. Sometimes, issues like this are resolved in newer library versions.

Check Documentation and Community Forums: Review the documentation for the AndroidX Credentials library and check community forums or issue trackers for any known issues or solutions related to the onResult method and the ClearCredentialState functionality.

By following these steps and debugging the code systematically, you should be able to identify the root cause of the NullPointerException and implement the necessary fixes to resolve the runtime exception.

from androidx.

Kebechet avatar Kebechet commented on June 13, 2024

Seems to be a problem in the original library:
https://issuetracker.google.com/issues/314926460?pli=1

The call ClearCredentialStateAsync doesnt work on Google Pixel 6(v34) but it works on Samsung S9(v29)

from androidx.

jpobst avatar jpobst commented on June 13, 2024

Closing as this seems to be an issue in the underlying Google AndroidX Java package.

from androidx.

Kebechet avatar Kebechet commented on June 13, 2024

@jpobst shouldnt this be kept open unit new version of the package fixing the problem is released ?
Because it requires you to create update for androidx.credentials containing the bug fix.

from androidx.

Kebechet avatar Kebechet commented on June 13, 2024

Perfect, thank you

from androidx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.