tmf: Fix opening symbol config dialog for experiments
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Sat, 9 Apr 2016 22:27:11 +0000 (18:27 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 11 Apr 2016 20:10:20 +0000 (16:10 -0400)
commitb587a6c37ee96889e85386e9b6d940c57d39b9e4
tree656947a70bc9d0000f067a9769c52359d4f811bc
parent9c5402ebe41166b26f73e075a045b91c34bdfbdd
tmf: Fix opening symbol config dialog for experiments

An ArrayIndexOutOfBounds exception could be thrown when opening
the symbol mapping configuration dialog in the context of a
multi-trace experiment. Index "-1" would be passed to
updateMessage(int).

When the window is first opened, the selection index is at -1,
simply skip the updateMessage() in this case.

Change-Id: I43b384016ec7dfff1b16b272b34155579bc101cc
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/70314
Reviewed-by: Hudson CI
Reviewed-by: Robert Kiss <robert.kiss@gmail.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/symbols/SymbolProviderConfigDialog.java
This page took 0.024601 seconds and 5 git commands to generate.