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

Anticipate msgbase.get_all_msg_headers() returning null

Fix issue #693
parent f18775d2
Branches
Tags
No related merge requests found
Pipeline #5207 passed
...@@ -285,7 +285,7 @@ switch(field[0]) { ...@@ -285,7 +285,7 @@ switch(field[0]) {
**/ **/
var hdr_list = msgbase.get_all_msg_headers(); var hdr_list = msgbase.get_all_msg_headers();
first = msgbase.first_msg; first = msgbase.first_msg;
for(i=msgbase.last_msg;i>=first;i--) { for(i=msgbase.last_msg; hdr_list != null && i>=first; i--) {
hdr = hdr_list[i]; hdr = hdr_list[i];
if(hdr==null) if(hdr==null)
continue; continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment