From d53d493ba78fc2b7a46457e585e982a1423720ea Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 27 Jun 2009 00:18:47 +0000 Subject: [PATCH] MODLANG-116 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13993 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_lua/freeswitch_lua.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/languages/mod_lua/freeswitch_lua.cpp b/src/mod/languages/mod_lua/freeswitch_lua.cpp index 145ffdb151..76cad70c5d 100644 --- a/src/mod/languages/mod_lua/freeswitch_lua.cpp +++ b/src/mod/languages/mod_lua/freeswitch_lua.cpp @@ -99,6 +99,9 @@ bool Session::ready() { bool r; + if (!session) { + return false; + } sanity_check(false); r = switch_channel_ready(channel) != 0; do_hangup_hook();