Skip to content

Commit

Permalink
Erroneous log id when event store is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Willemart committed May 31, 2015
1 parent b9c51bd commit 4e88113
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 4e88113

Please sign in to comment.