Fix some null warnings
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / statesystem / TmfStateSystemAnalysisModule.java
index 3c2004c64ab62cf8961ff924c6add4e9c0738081..f4f6e61aa114746906179246fd5b24afb4764447 100644 (file)
@@ -520,7 +520,11 @@ public abstract class TmfStateSystemAnalysisModule extends TmfAbstractAnalysisMo
 
     @Override
     public Iterable<ITmfStateSystem> getStateSystems() {
-        return checkNotNull(Collections.<ITmfStateSystem> singleton(fStateSystem));
+        ITmfStateSystemBuilder stateSystem = fStateSystem;
+        if (stateSystem == null) {
+            return Collections.EMPTY_SET;
+        }
+        return Collections.singleton(stateSystem);
     }
 
     /**
This page took 0.024509 seconds and 5 git commands to generate.