Skip to content

Commit

Permalink
One more NullPointerException gone without really knowing how it was …
Browse files Browse the repository at this point in the history
…even possible...
  • Loading branch information
Rantanen authored and pcgod committed Nov 24, 2010
1 parent 0dea621 commit 1ffde06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/org/pcgod/mumbleclient/app/ChannelList.java
Expand Up @@ -335,7 +335,8 @@ private void synchronizeControls() {
// We used mService.isConnected at some point but this has an issue if
// onConnected has not been called yet (and thus visibleChannel has not
// been set).
if (mService == null || visibleChannel == null) {
if (mService == null || mService.getCurrentChannel() == null ||
visibleChannel == null) {
findViewById(R.id.connectionViewRoot).setVisibility(View.GONE);
speakButton.setEnabled(false);
joinButton.setEnabled(false);
Expand Down

0 comments on commit 1ffde06

Please sign in to comment.