NPE in logFailure, see #3181