Do not write anything if data is null

This commit is contained in:
Michael Becker 2014-04-20 18:07:02 -04:00
parent 1fdbae8d0f
commit 5b0171db02

View File

@ -95,6 +95,7 @@ namespace UniversalEditor.IO
}
public void WriteBytes(byte[] data)
{
if (data == null) return;
Write(data, 0, data.Length);
}