Null input prevention