The origPattern is explicitly checked against null few lines above, no need to check it again.