fixed NPE in channel discovery after race to create menu
This commit is contained in:
parent
1db07b84f3
commit
a909e1a7cf
|
@ -94,7 +94,7 @@ public class ChannelDiscoveryActivity extends XmppActivity implements MenuItem.O
|
|||
mMenuSearchView.expandActionView();
|
||||
mSearchEditText.append(initialSearchValue);
|
||||
mSearchEditText.requestFocus();
|
||||
if (optedIn) {
|
||||
if (optedIn && xmppConnectionService != null) {
|
||||
xmppConnectionService.discoverChannels(initialSearchValue, this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue