InvalidArgumentException thrown

No stream given.