Permalink
Browse files

Accounting for possible null values

  • Loading branch information...
1 parent a81dcc0 commit e367ea0988971ff080dbaa91220c4518fedcb82b @ferventcoder ferventcoder committed Jun 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Website/Views/Packages/DisplayPackage.cshtml
@@ -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>
}

0 comments on commit e367ea0

Please sign in to comment.