This exception may happen if the statesystem was not fully built
due to using pre-release traces that do not have all the
expected event fields.
Since there are such traces out in the wild, this situation can
happen sometimes.
Bug: 497863
Change-Id: Id8c14e36f9dcfe1858628f96298ed3959c0a58f5
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/77263
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
import org.eclipse.tracecompass.statesystem.core.StateSystemUtils;
import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
import org.eclipse.tracecompass.statesystem.core.exceptions.StateSystemDisposedException;
import org.eclipse.tracecompass.statesystem.core.StateSystemUtils;
import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
import org.eclipse.tracecompass.statesystem.core.exceptions.StateSystemDisposedException;
+import org.eclipse.tracecompass.statesystem.core.exceptions.TimeRangeException;
import org.eclipse.tracecompass.statesystem.core.interval.ITmfStateInterval;
import org.eclipse.tracecompass.statesystem.core.statevalue.ITmfStateValue;
import org.eclipse.tracecompass.tmf.core.analysis.requirements.TmfAbstractAnalysisRequirement;
import org.eclipse.tracecompass.statesystem.core.interval.ITmfStateInterval;
import org.eclipse.tracecompass.statesystem.core.statevalue.ITmfStateValue;
import org.eclipse.tracecompass.tmf.core.analysis.requirements.TmfAbstractAnalysisRequirement;
}
} catch (AttributeNotFoundException e) {
throw new IllegalStateException(e);
}
} catch (AttributeNotFoundException e) {
throw new IllegalStateException(e);
- } catch (StateSystemDisposedException e) {
+ } catch (TimeRangeException | StateSystemDisposedException e) {
/* Oh well, such is life. */
}
return files;
/* Oh well, such is life. */
}
return files;
// TODO: that's probably not true anymore
/* We're only using quarks we've checked for. */
throw new IllegalStateException(e);
// TODO: that's probably not true anymore
/* We're only using quarks we've checked for. */
throw new IllegalStateException(e);
- } catch (StateSystemDisposedException e) {
+ } catch (TimeRangeException | StateSystemDisposedException e) {