check whether stream from resources is null