Do not write anything if data is null
This commit is contained in:
parent
1fdbae8d0f
commit
5b0171db02
@ -95,6 +95,7 @@ namespace UniversalEditor.IO
|
||||
}
|
||||
public void WriteBytes(byte[] data)
|
||||
{
|
||||
if (data == null) return;
|
||||
Write(data, 0, data.Length);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user