add comment explaining where null pointer exceptions appear