Ignore:
Timestamp:
11/17/17 13:21:34 (2 years ago)
Author:
jkarder
Message:

#2846:

  • only swallow a potential NullReferenceException while jobs are added
  • removed redundant check in OnContentChanged
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/HiveClient.cs

    r15419 r15478  
    9696        var jobsLoaded = HiveServiceLocator.Instance.CallHiveService<IEnumerable<Job>>(s => s.GetJobs());
    9797
    98         foreach (var j in jobsLoaded) {
    99           jobs.Add(new RefreshableJob(j));
    100         }
    101       } catch (NullReferenceException) {
    102         // jobs was set to null during ClearHiveClient
     98        try {
     99          foreach (var j in jobsLoaded) {
     100            jobs.Add(new RefreshableJob(j));
     101          }
     102        } catch (NullReferenceException) {
     103          // jobs was set to null during ClearHiveClient
     104        }
    103105      } catch {
    104106        jobs = null;
Note: See TracChangeset for help on using the changeset viewer.