Skip to content

Commit

Permalink
Merge pull request #1004 from hypar-io/topo-fix
Browse files Browse the repository at this point in the history
topo elevations can be null
  • Loading branch information
wynged authored Jul 27, 2023
2 parents bf5fbd9 + fae8980 commit 6c2c0c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Elements/src/Topography.cs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public Topography(Topography topography)
this.RowWidth = topography.RowWidth;
this.CellWidth = topography.CellWidth;
this.CellHeight = topography.CellHeight;
this.Elevations = topography.Elevations.ToArray();
this.Elevations = topography.Elevations?.ToArray();
this._depthBelowMinimumElevation = topography._depthBelowMinimumElevation;
this._absoluteMinimumElevation = topography._absoluteMinimumElevation;
this._minElevation = topography._minElevation;
Expand Down

0 comments on commit 6c2c0c2

Please sign in to comment.