diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-04 08:02:50 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-04 08:02:50 -0500 |
commit | c5ab74f9adb52228ef6583353b89d855f0dc4a3a (patch) | |
tree | 578177f6e59f8324030b1f975595c946f92c19ca /misc/freeswitch/scripts/common | |
parent | 39cfd26ddb2ac6b27932f82a486f04130bc3a646 (diff) |
sets can be nil
Diffstat (limited to 'misc/freeswitch/scripts/common')
-rw-r--r-- | misc/freeswitch/scripts/common/group.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/common/group.lua b/misc/freeswitch/scripts/common/group.lua index 1763e69..b9cae61 100644 --- a/misc/freeswitch/scripts/common/group.lua +++ b/misc/freeswitch/scripts/common/group.lua @@ -152,6 +152,10 @@ end function Group.intersection(self, set_one, set_two) + if not set_one or not set_two then + return {}; + end + local basic_set = {}; for index=1, #set_one do basic_set[set_one[index]] = true; |