Skip to content

Commit ee9079f

Browse files
committed
Fix for potential nil comms msg
1 parent a905f45 commit ee9079f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Services/Comms.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function private.ReceiveComm(prefix, encodedMsg, distri, sender)
165165
local decoded = ld:DecodeForWoWAddonChannel(encodedMsg)
166166
local decompressed = ld:DecompressDeflate(decoded)
167167
Log:f("<Comm>", decompressed, distri, senderName)
168-
local test, command, data = self:Deserialize(decompressed)
168+
local test, command, data = self:Deserialize(decompressed or "")
169169
if not test then
170170
-- luacov: disable
171171
return Log:e("<Comm>", "Deserialization failed with:", decompressed)

0 commit comments

Comments
 (0)