remove redundant NULL patch check