Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
fixed possible NullPointerException (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-fra committed Dec 11, 2017
1 parent a59dd2c commit 5068821
Showing 1 changed file with 7 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
package io.redlink.smarti.cloudsync;

import java.util.Date;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;

import io.redlink.smarti.model.Conversation;
import io.redlink.smarti.repositories.ConversationRepository;
import io.redlink.smarti.repositories.ConversationRepositoryCustom.UpdatedConversationIds;
import org.apache.commons.collections4.ListUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import io.redlink.smarti.model.Conversation;
import io.redlink.smarti.repositories.ConversationRepository;
import io.redlink.smarti.repositories.ConversationRepositoryCustom.UpdatedConversationIds;
import java.util.Date;
import java.util.concurrent.atomic.AtomicInteger;

/**
* Component that allows to rebuild an index of a {@link VocabularyIndexer} based
* on the terms in the {@link TermRepository}
* Component that allows to rebuild an index of a {@link ConversationRepository}.
* @author Rupert Westenthaler
*
*/
Expand Down Expand Up @@ -77,10 +73,9 @@ public int getDuration() {

@Override
public String toString() {
return "SyncData [syncDate=" + syncDate == null ? null : syncDate.toInstant() + ", count=" + count + ", duration=" + duration + "ms]";
return "SyncData [syncDate=" + (syncDate == null ? null : syncDate.toInstant()) + ", count=" + count + ", duration=" + duration + "ms]";
}


}

}

0 comments on commit 5068821

Please sign in to comment.