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

Move setClickListener(this) to updateUI() in ProfileStatsWidget #469

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

luk1337
Copy link
Member

@luk1337 luk1337 commented Dec 23, 2021

AniTrend Pull Request

Thank you for contributing! Please take a moment to review our contributing guidelines
to make the process easy and effective for everyone involved.

Please open an issue before embarking on any significant pull request, especially those that
add a new library or change existing tests, otherwise you risk spending a lot of time working
on something that might not end up being merged into the project.

Before opening a pull request, please ensure:

  • You have followed our contributing guidelines
  • double-check your branch is based on develop and targets develop
  • Pull request has tests
  • Code is well-commented, linted and follows project conventions
  • Documentation is updated (if necessary)
  • Description explains the issue/use-case resolved
  • I did not commit files that are excluded in the .gitignore file (Happens if you stage files with Android Studio)

Description

This fixes a possible NPE in onClick() when user tries to go to anime / manga list of any given user before the data has been fully loaded.

Motivation and Context

See description.

How Has This Been Tested?

Tapped very fast on anime list when trying to open user profile.

Screenshots (if appropriate):

n/a

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

IMPORTANT: By submitting a patch, you agree to allow the project
owners to license your work under the terms of the MIT License.

This fixes a possible NPE in onClick() when user tries to go to anime /
manga list of any given user before the data has been fully loaded.

Closes: AniTrend#462
@wax911 wax911 linked an issue Dec 23, 2021 that may be closed by this pull request
@wax911 wax911 added this to the 1.9.X milestone Dec 23, 2021
@wax911 wax911 merged commit dba6246 into AniTrend:release/1.9.6 Dec 23, 2021
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

Successfully merging this pull request may close these issues.

Null pointer exception: ProfileStatsWidget
2 participants