Fix NullpointerException due to DebugMessagePart