summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logger.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logger.h b/src/logger.h
index c2fabb383..4ce89f759 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -29,7 +29,7 @@
class ChatWindow;
#ifdef ENABLEDEBUGLOG
-#define DEBUGLOG(msg) logger->dlog(msg)
+#define DEBUGLOG(msg) if (logger) logger->dlog(msg)
#else
#define DEBUGLOG(msg) {}
#endif