Skip to content
Snippets Groups Projects
Commit 18bbb0f7 authored by Mike Hodge's avatar Mike Hodge
Browse files

Fix automation event constraint violation exception at startup

parent 73e9a17e
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,8 @@ public class AutomationEventScriptHandler implements Consumer<Event<AutomationEv ...@@ -177,7 +177,8 @@ public class AutomationEventScriptHandler implements Consumer<Event<AutomationEv
* *
* @param event the event * @param event the event
*/ */
private void updateAutomationTables(Event<AutomationEventImplementerI> event) { // Made this method synchronized to avoid some constraint violation exceptions that were occasionally being thrown.
private synchronized void updateAutomationTables(Event<AutomationEventImplementerI> event) {
final AutomationEventImplementerI eventData = event.getData(); final AutomationEventImplementerI eventData = event.getData();
if (eventData.getEventId() == null || eventData.getClass() == null) { if (eventData.getEventId() == null || eventData.getClass() == null) {
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment