tmf.core: Throw exception when no state system assigned
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / statesystem / AbstractTmfStateProvider.java
index f9d74f948e4704904266086778978ae54502c6be..1dec0e0047e500963b13b6fe5dabd27b4222a30a 100644 (file)
@@ -126,8 +126,7 @@ public abstract class AbstractTmfStateProvider implements ITmfStateProvider {
     public void processEvent(ITmfEvent event) {
         /* Make sure the target state system has been assigned */
         if (!fStateSystemAssigned) {
-            Activator.logError("Cannot process event without a target state system"); //$NON-NLS-1$
-            return;
+            throw new IllegalStateException("Cannot process event without a target state system. ID: " + getClass().getSimpleName()); //$NON-NLS-1$
         }
 
         /* Insert the event we're received into the events queue */
This page took 0.025804 seconds and 5 git commands to generate.