mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Added a null pointer check to protect from NullPointerExceptions.
See issue 1749
This commit is contained in:
parent
25f5469497
commit
7adc168471
@ -1926,7 +1926,16 @@ public class MessageList
|
||||
{
|
||||
for (MessageInfoHolder holder : mAdapter.messages)
|
||||
{
|
||||
if (holder.message.equalsReference(messageReference))
|
||||
/*
|
||||
* 2010-06-21 - cketti
|
||||
* Added null pointer check. Not sure what's causing 'holder'
|
||||
* to be null. See log provided in issue 1749, comment #15.
|
||||
*
|
||||
* Please remove this comment once the cause was found and the
|
||||
* bug(?) fixed.
|
||||
*/
|
||||
if ((holder != null) &&
|
||||
holder.message.equalsReference(messageReference))
|
||||
{
|
||||
return holder;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user