Fix null referent handling

This commit is contained in:
Lucien Greathouse
2020-11-19 11:44:53 -08:00
parent 1c0dc60071
commit dcb30351c5
3 changed files with 14 additions and 3 deletions

View File

@@ -9,6 +9,10 @@ local Error = require(script.Parent.Error)
local function decodeValue(virtualValue, instanceMap)
-- Refs are represented as IDs in the same space that Rojo's protocol uses.
if virtualValue.Type == "Ref" then
if virtualValue.Value == nil then
return true, nil
end
local instance = instanceMap.fromIds[virtualValue.Value]
if instance ~= nil then