Fixes a potential null value

This commit is contained in:
tom79 2017-08-29 09:12:32 +02:00
parent a32d631ba8
commit 177e3b9953
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ public class StreamingService extends Service implements OnRetrieveStreamingInte
}else if(event == StreamingUserAsyncTask.EventStreaming.UPDATE ){
//lastePreviousContent contains the content of the last notification, if it was a mention it will avoid to push two notifications
if( account == null || lastePreviousContent.equals(status.getContent())) { //troubles when getting the account
if( account == null || (lastePreviousContent != null && lastePreviousContent.equals(status.getContent()))) { //troubles when getting the account
notify = false;
}else if(account.getAcct().trim().equals(acct.trim()) && account.getId().trim().equals(userId.trim())){
//Same account, no notification