fix NPE
This commit is contained in:
parent
e49d430a50
commit
27c4fe3309
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ public class NSProfileFragment extends SubscriberFragment {
|
|||
|
||||
@OnClick(R.id.nsprofile_profileswitch)
|
||||
public void onClickProfileSwitch() {
|
||||
String name = profileSpinner.getSelectedItem().toString();
|
||||
String name = profileSpinner.getSelectedItem() != null ? profileSpinner.getSelectedItem().toString() : "";
|
||||
ProfileStore store = NSProfilePlugin.getPlugin().getProfile();
|
||||
if (store != null) {
|
||||
Profile profile = store.getSpecificProfile(name);
|
||||
|
|
Loading…
Reference in a new issue