# HG changeset patch # User Kim Alvefur # Date 1572697473 -3600 # Node ID 5482f21a18a20754185b377349b92a10aeec210c # Parent 2283381200096ed135163189f5433f29cfe1521e core.sessionmanager: Fix traceback from passing nil to resourceprep diff -r 228338120009 -r 5482f21a18a2 core/sessionmanager.lua --- a/core/sessionmanager.lua Sat Nov 02 13:09:54 2019 +0100 +++ b/core/sessionmanager.lua Sat Nov 02 13:24:33 2019 +0100 @@ -150,7 +150,7 @@ resource = event_payload.resource; end - resource = resourceprep(resource); + resource = resourceprep(resource or ""); resource = resource ~= "" and resource or generate_identifier(); --FIXME: Randomly-generated resources must be unique per-user, and never conflict with existing