Fixed crash when tracing warning with nullptr