Check null reference for vto and view