fixed nullptr print