fixed: Nullpointer Exception when DEBUG logging is enabled