Skip to content
Snippets Groups Projects
Commit 64e2ea9a authored by rswindell's avatar rswindell
Browse files

Fix line 154: TypeError: obj is null - I think

parent a6a795fb
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment