[sr-dev] git:master:1891dcb9: pdt: reorder checks to avoid null access