This commit is contained in:
Milos Kozak 2018-03-27 21:43:35 +02:00
parent e49d430a50
commit 27c4fe3309

View file

@ -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);