Skip to content
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

You don't check if the WeakReference is still alive. I think you should also check if the reference is not yet enqueued. #541

Open
businessvivek3600 opened this issue Jul 5, 2023 · 0 comments

Comments

@businessvivek3600
Copy link

          You don't check if the `WeakReference` is still alive. I think you should also check if the reference is not yet enqueued.
protected String getPreferencesBaseKey() {
    if (contextReference.isEnqueued() || contextReference.get() == null)
        retrun null;
    return contextReference.get().getPackageName() + "_preferences";
}

Originally posted by @heinrichreimer in #166 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant