TMF: Fix IndexOutOfBoundException when querying state system
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Tue, 8 Apr 2014 18:38:15 +0000 (14:38 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Wed, 9 Apr 2014 01:50:39 +0000 (21:50 -0400)
commit7f0344d8998384c580ab14edfd6ccb9368dd50de
tree55581801f1bbebac695f76b105ba3b76183000bd
parentdeaae6e179595b509d46e750eb33301e0f2223aa
TMF: Fix IndexOutOfBoundException when querying state system

Fixes bug 432191 where the size of the stateInfo array may be smaller than
the ongoingStateInfo when the method is called. We use the size we know is the
smallest to avoid this exception to be thrown.

Change-Id: I1494940726b952ffe94560a7bed6e5764ff3d8f9
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/24661
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/internal/tmf/core/statesystem/TransientState.java
This page took 0.02424 seconds and 5 git commands to generate.