Skip to content

Commit

Permalink
Accounting for possible null values
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Jun 14, 2012
1 parent a81dcc0 commit e367ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Website/Views/Packages/DisplayPackage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<h1>@Model.Title</h1>
<h2>@Model.Version</h2>
</hgroup>
@foreach (var line in Model.Description.Split('\n'))
@foreach (var line in Model.Description.ToStringSafe().Split('\n'))
{
<p>@line</p>
}
Expand Down

0 comments on commit e367ea0

Please sign in to comment.