Ignore:
Timestamp:
07/04/19 14:49:59 (22 months ago)
Author:
mkommend
Message:

#2839: Merged 16513 into stable.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Clients.Hive.Administrator

  • stable/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs

    r17063 r17065  
    9696
    9797        ownerComboBox.SelectedIndexChanged -= ownerComboBox_SelectedIndexChanged;
    98         var users = AccessClient.Instance.UsersAndGroups.OfType<LightweightUser>();
    99         if (!Content.ParentProjectId.HasValue) users = users.Where(x => x.Roles.Select(y => y.Name).Contains(HiveRoles.Administrator));
    100         var projectOwnerId = Content.OwnerUserId;
    101         ownerComboBox.DataSource = users.OrderBy(x => x.UserName).ToList();
    102         ownerComboBox.SelectedItem = users.FirstOrDefault(x => x.Id == projectOwnerId);
     98        if (AccessClient.Instance.UsersAndGroups != null) {
     99          var users = AccessClient.Instance.UsersAndGroups.OfType<LightweightUser>();
     100          if (!Content.ParentProjectId.HasValue) users = users.Where(x => x.Roles.Select(y => y.Name).Contains(HiveRoles.Administrator));
     101          var projectOwnerId = Content.OwnerUserId;
     102          ownerComboBox.DataSource = users.OrderBy(x => x.UserName).ToList();
     103          ownerComboBox.SelectedItem = users.FirstOrDefault(x => x.Id == projectOwnerId);
     104        }
    103105        ownerComboBox.SelectedIndexChanged += ownerComboBox_SelectedIndexChanged;
    104106
Note: See TracChangeset for help on using the changeset viewer.