Skip to content

Commit 50566ad

Browse files
authored
Merge pull request #16 from ytausch/fix-nullreference-bug
Fix: Configuration errors can now display again.
2 parents 77c60b3 + ecd141c commit 50566ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SchoolDisplay/SchoolDisplay/MainForm.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ private void ShowError(string text)
150150
lblErrors.Text = text;
151151
lblErrors.Visible = true;
152152

153-
scroller.Stop();
153+
if (scroller != null)
154+
{
155+
scroller.Stop();
156+
}
154157
}
155158

156159
private void HideError()

0 commit comments

Comments
 (0)