Skip to content

Commit 7d1a0d3

Browse files
committed
Fix app crash when no group exists
1 parent 023e688 commit 7d1a0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/NETworkManager/ViewModels/ProfilesViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ private void AddProfileAction()
197197
_lastSelectedGroup = SelectedGroup?.Name;
198198
_lastSelectedProfile = SelectedProfile?.Name;
199199

200-
ProfileDialogManager.ShowAddProfileDialog(this, _dialogCoordinator, SelectedGroup.Name);
200+
ProfileDialogManager.ShowAddProfileDialog(this, _dialogCoordinator, SelectedGroup?.Name);
201201
}
202202

203203
public ICommand EditProfileCommand => new RelayCommand(p => EditProfileAction(), EditProfile_CanExecute);

0 commit comments

Comments
 (0)