linux: make TID analysis handle no TID more gracefully - Bug 491275
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.os.linux.core / src / org / eclipse / tracecompass / analysis / os / linux / core / tid / TidAnalysisModule.java
index 6aadd40b31a1132a1663a512c7c27ec3b31631e3..b4f63a9e174d2a59201189ae5de62c7c4b4cfe61 100644 (file)
@@ -82,7 +82,10 @@ public class TidAnalysisModule extends TmfStateSystemAnalysisModule {
 
         Integer tid = null;
         try {
-            int cpuQuark = stateSystem.getQuarkAbsolute(Integer.toString(cpu));
+            int cpuQuark = stateSystem.optQuarkAbsolute(Integer.toString(cpu));
+            if (cpuQuark == ITmfStateSystem.INVALID_ATTRIBUTE) {
+                return null;
+            }
             ITmfStateValue value = stateSystem.querySingleState(time, cpuQuark).getStateValue();
             if (value.getType().equals(Type.INTEGER)) {
                 tid = value.unboxInt();
This page took 0.02482 seconds and 5 git commands to generate.