Fix for NPE on logging entry