Addin Null check on stream