Skip to content
Snippets Groups Projects
Commit cbae5ab7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Work-around avatars.js line 271: TypeError: hdr is null

with a null hdr check before use (corrupt msg base?)
parent a915adcc
No related branches found
No related tags found
No related merge requests found
......@@ -268,6 +268,8 @@ function import_from_msgbase(msgbase, import_ptr, limit, all)
if(idx.to != users_crc && idx.to != shared_crc)
continue;
var hdr = msgbase.get_msg_header(/* by_offset: */true, i);
if(!hdr)
continue;
if(all != true && !hdr.from_net_type) // Skip locally posted messages
continue;
if(system.findstr(system.ctrl_dir + "twitlist.cfg", hdr.from)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment