From 12e288a7adeb951d178614984fb0bd535da3af6e Mon Sep 17 00:00:00 2001 From: erilong Date: Mon, 21 Apr 2008 20:05:32 +0000 Subject: [PATCH] log some detail when history for trigger not found --- .../java/org/jumpmind/symmetric/service/impl/DataService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/symmetric/src/main/java/org/jumpmind/symmetric/service/impl/DataService.java b/symmetric/src/main/java/org/jumpmind/symmetric/service/impl/DataService.java index 215b8dede9..98e2fe39bd 100644 --- a/symmetric/src/main/java/org/jumpmind/symmetric/service/impl/DataService.java +++ b/symmetric/src/main/java/org/jumpmind/symmetric/service/impl/DataService.java @@ -85,6 +85,10 @@ public void insertReloadEvent(final Node targetNode, final Trigger trigger, final String overrideInitialLoadSelect) { final TriggerHistory history = configurationService.getLatestHistoryRecordFor(trigger.getTriggerId()); + if (history == null) { + throw new RuntimeException("Cannot find history for trigger " + trigger.getTriggerId() + ", " + + trigger.getSourceTableName()); + } // initial_load_select for table can be overridden by populating the row_data Data data = new Data(history.getSourceTableName(), DataEventType.RELOAD, overrideInitialLoadSelect, null, history);