Handle the case that pj is null.