A Null field returns Null, not a zero length array.
1. Better to remove the Try / Catch block.
2.
If Initialized(Buffer) And Buffer.Length > 0 Then
Thank you for your response,
@Erel
following your obviously correct thought, and in the context of my presented line of code - an examination statement should be used, e.g. "If buffer.initialized = True/False Then ..." (which of course does not exist, it is replaced by Initialized(), of course). You understand? If there is such a thing as
buffer.Length then there should be a true/false equivalent of
buffer.Initalized, it would probably be better...(?) I'm considering it, purely theoretically.
I only care about the structure of the array instructions (i.e. instead of Initialize(Buffer) -> Buffer.Initialized)