Skip to content

Commit

Permalink
fixed NullPointerException
Browse files Browse the repository at this point in the history
Issue #211
  • Loading branch information
rsoika committed Jul 16, 2024
1 parent 6c692e7 commit 3e0b6dc
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,12 @@ public void onTimeout(jakarta.ejb.Timer _timer) {
logger.finest("......pull snapshot " + ref + "....");
// eventCache.add(eventLogEntry);
ItemCollection snapshot = pullSnapshot(eventLogEntry, documentClient, eventLogClient);
ftpConnector.put(snapshot);
// finally remove the event log entry...
eventLogClient.deleteEventLogEntry(id);
success++;
if (snapshot != null) {
ftpConnector.put(snapshot);
// finally remove the event log entry...
eventLogClient.deleteEventLogEntry(id);
success++;
}
countMetric(METRIC_EVENTS_PROCESSED);

} catch (InvalidAccessException | EJBException | BackupException | RestAPIException e) {
Expand Down

0 comments on commit 3e0b6dc

Please sign in to comment.