--- deliantra/server/socket/lowlevel.C 2007/09/01 08:03:46 1.57 +++ deliantra/server/socket/lowlevel.C 2007/09/08 06:57:08 1.58 @@ -489,6 +489,12 @@ void client::send_msg (int color, const char *type, const char *msg) { + if (!msg || !type) // it can happen (for example, missing attack messages cause this) + { + LOG (logBacktrace | llevError, "send_msg(%d,%p,%p) called with NULL msg or type.\n", color, type, msg); + return; + } + if (msg_is_special (msg) || (type [0] == 'c' && type [1] == '/')) cfperl_send_msg (this, color, type, msg); else if (can_msg)