Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/08 16:38:52 (16 years ago)
Author:
svonolfe
Message:

Fixed ResultsAdapter (#372)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobResultsAdapter.cs

    r1005 r1017  
    5353          row.SetJobResultNull();
    5454
    55         if (result.Client != null)
    56           row.ResourceId = result.Client.Id;
     55        if (result.Client != null)  {
     56          ClientInfo client =
     57                 ClientAdapter.GetById(result.Client.ClientId);
     58
     59          if (client != null)
     60            row.ResourceId = client.Id;
     61          else
     62            row.SetResourceIdNull();
     63        }           
    5764        else
    5865          row.SetResourceIdNull();
Note: See TracChangeset for help on using the changeset viewer.