Added check for null value in MyHeader property

This commit is contained in:
Rich 2014-01-10 03:14:57 +00:00
parent 3c7c853d00
commit ead8f91a2b

View File

@ -111,7 +111,7 @@ namespace Volian.Print.Library
{
if (vph is vlnHeader)
{
string sep = parent.MyItemInfo.MyHeader.CleanText;
string sep = parent.MyItemInfo.MyHeader == null ? "" : parent.MyItemInfo.MyHeader.CleanText;
vlnHeader tmp = vph as vlnHeader;
// the separator must exist and the previous must have a change bar.