Fixed a bug with filtering on repatier firmware.

This commit is contained in:
Lars Brubaker 2014-12-12 14:19:43 -08:00
parent 47fed001ec
commit 4719e71272
2 changed files with 4 additions and 2 deletions

View file

@ -97,7 +97,9 @@ namespace MatterHackers.MatterControl
bool lineIsVisible = true;
foreach (string startFilter in StartLineStringFilters)
{
if (line.StartsWith(startFilter))
if (line != null
&& line.Length > 3
&& line.StartsWith(startFilter))
{
lineIsVisible = false;
break;