fixing another clang issue with a NULL defreference