From 64e2ea9a4972f64f131bc03594be3c7987bfd6af Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Thu, 11 Jan 2018 06:34:27 +0000 Subject: [PATCH] Fix line 154: TypeError: obj is null - I think --- exec/load/avatar_lib.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/load/avatar_lib.js b/exec/load/avatar_lib.js index 0ef7de9988..bca8e70c73 100644 --- a/exec/load/avatar_lib.js +++ b/exec/load/avatar_lib.js @@ -151,7 +151,8 @@ function import_file(usernum, filename, offset) function enabled(obj) { - return typeof obj == 'object' + return obj + && typeof obj == 'object' && typeof obj.data == 'string' && obj.data.length && !obj.disabled; -- GitLab