Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/09 17:59:58 (15 years ago)
Author:
epitzer
Message:

Don't call Data.GetHashCode() if Data is null. (#631)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/3.3/ObjectData.cs

    r1823 r1842  
    8686    /// <inheritdoc cref="object.GetHashCode"/>
    8787    public override int GetHashCode() {
    88       return Data.GetHashCode();
     88      if ( Data != null )       
     89        return Data.GetHashCode();
     90      return 0;
    8991    }
    9092
Note: See TracChangeset for help on using the changeset viewer.