Skip to content

Commit a1de049

Browse files
fix event variable error
1 parent 5d04709 commit a1de049

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Code/EventSystem/EventHandler.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ private static Variable[] InternalGetVariablesFromProperties(List<(object value,
220220
List<Variable> variables = [];
221221
foreach (var (value, name, _) in properties)
222222
{
223+
if (value is null) continue;
223224
variables.Add(Variable.Create(
224225
$"ev{name.First().ToString().ToUpper()}{name[1..]}",
225226
Value.Parse(value, null))

0 commit comments

Comments
 (0)