Fix exception when passing null as PARAM arg

This commit is contained in:
Zaid Abdulla committed 2020-08-19 20:04:36 -07:00
1 parent ec44ccfc07
commit 19c5bb03ea
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ export function configContextCallback(
exp: Expression
): Expression {
if (!Array.isArray(exp)) return exp;
if (exp[0] === "PARAM") {
if (exp[0] === "PARAM" && typeof exp[1] === "string") {
let name = exp[1];
if (name === "id") name = "DeviceID.ID";
else if (name === "serialNumber") name = "DeviceID.SerialNumber";