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

Anticipate msgbase.get_all_msg_headers() returning null

Fix issue #693
parent 994b5f7c
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -285,7 +285,7 @@ switch(field[0]) {
**/
var hdr_list = msgbase.get_all_msg_headers();
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];
if(hdr==null)
continue;
......
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