Skip to content

Conversation

sblackshear
Copy link
Contributor

The HostListActivity lifecycle and the ServiceConnection lifecycle are independent. In the case that the onCreateContextMenu callback fires before the onServiceConnected callback, the bound field will be null in onCreateContextMenu and can throw an exception. This pull request fixes the issue by checking for bound for null before dereferencing it.

kruton added a commit that referenced this pull request Mar 29, 2015
Fix possible NPE in HostListActivity.onCreateContextMenu
@kruton kruton merged commit 7e60020 into connectbot:master Mar 29, 2015
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.

2 participants