fix NPE at shutdown

This commit is contained in:
zzz
2016-06-15 21:55:15 +00:00
parent c9d24d8c81
commit 27b6c53a9a

View File

@ -342,7 +342,7 @@ public class ThreadBuilder {
iter.remove();
rv.add(cur);
Container c = (Container)_idTable.get(cur);
if ( (c != null) && (c.msg != null) ) {
if (c != null && c.msg != null && c.msg.references != null) {
for (int i = 0; i < c.msg.references.size(); i++) {
ThreadMsgId ancestor = (ThreadMsgId)c.msg.references.get(i);
if (!rv.contains(ancestor))