changing NULL to nullptr in one place is inconsistent