maybe a better fix for the NPE when log level is TRACE