Skip to content

Commit

Permalink
Merge pull request #19 from mwillema/master
Browse files Browse the repository at this point in the history
Erroneous log id when event store is empty
  • Loading branch information
vlingo-java committed Jun 1, 2015
2 parents b9c51bd + 4e88113 commit 05d9557
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private NotificationLogInfo calculateCurrentNotificationLogId(

long remainder = count % NOTIFICATIONS_PER_LOG;

if (remainder == 0) {
if (remainder == 0 && count > 0) {
remainder = NOTIFICATIONS_PER_LOG;
}

Expand Down

0 comments on commit 05d9557

Please sign in to comment.