Avoid NullReferenceException - thx alfaproject :)

This commit is contained in:
niksedk 2014-09-14 02:34:07 +02:00
parent addc5f7151
commit 7f1f0c48cd

View File

@ -195,7 +195,7 @@ namespace Nikse.SubtitleEdit.Controls
}
set
{
if (value.TotalMilliseconds >= TimeCode.MaxTime.TotalMilliseconds - 0.1 || value == null)
if (value == null && value.TotalMilliseconds >= TimeCode.MaxTime.TotalMilliseconds - 0.1)
{
maskedTextBox1.Text = string.Empty;
return;