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

Remove try/catch block by eliminating possible NPE #5

Closed
wants to merge 1 commit into from

Conversation

sblackshear
Copy link

Getting rid of a try/catch block that presumably exists to catch a NPE on the return value of list.getAdapter. This pull request allows the removal of this block by checking that the return value of list.getAdapter is non-null and has the expected ListAdapter type. This check on the return value of list.getAdapter is used in several other places in the code.

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.

1 participant