tmf.xml: Fix condition ordering to avoid IndexOutOfBoundsException in FSM
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Wed, 4 May 2016 13:45:15 +0000 (09:45 -0400)
committerJean-Christian Kouame <jean-christian.kouame@ericsson.com>
Wed, 18 May 2016 17:58:10 +0000 (13:58 -0400)
commitce1ac9eff21e2fead3373eb060cbfa319385699c
treeb9aad303680a9ca467dbafa260d8d4bc98ee59c9
parent137512b371037d75a1a3589b0e043716ce408f5c
tmf.xml: Fix condition ordering to avoid IndexOutOfBoundsException in FSM

If a scenario is not set as initial scenario, then no scenario is created and
the isNewScenarioAllowed method throws a IndexOutOfBoundsException. This patch
reorders the condition so it is first verified that the scenario count is more
than 0

Change-Id: I034e049ce6e1655fccbf6caf03978515285e9b73
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/72035
Reviewed-by: Hudson CI
Reviewed-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Tested-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/model/TmfXmlFsm.java
This page took 0.024084 seconds and 5 git commands to generate.