summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorBernd Hufmann2012-10-11 15:59:42 (EDT)
committer Bernd Hufmann2012-10-11 16:43:26 (EDT)
commit6ca699b69d5a4cb3caa9560572df94db8ebd6c13 (patch)
treeaf2ce97db3807b24032b6146285003484ade7857
parentc9a2b660a1cf727b48408ab231a908c2551c1a27 (diff)
downloadorg.eclipse.linuxtools-6ca699b69d5a4cb3caa9560572df94db8ebd6c13.zip
org.eclipse.linuxtools-6ca699b69d5a4cb3caa9560572df94db8ebd6c13.tar.gz
org.eclipse.linuxtools-6ca699b69d5a4cb3caa9560572df94db8ebd6c13.tar.bz2
Fix ArrayIndexOutOfBoundsException for sync signals (Bug 391716)
Change-Id: I4be9c4fec22f25b2ff77a918f692fb7b41e788b7 Signed-off-by: Bernd Hufmann <bhufmann@gmail.com> Reviewed-on: https://git.eclipse.org/r/8174 Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com> IP-Clean: Patrick Tasse <patrick.tasse@gmail.com> Tested-by: Hudson CI
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
index 867e4eb..d7cab88 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/uml2sd/loader/TmfUml2SDSyncLoader.java
@@ -428,8 +428,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
public void synchToTime(TmfTimeSynchSignal signal) {
fLock.lock();
try {
- if ((signal.getSource() != this) && (fFrame != null)) {
-
+ if ((signal.getSource() != this) && (fFrame != null) && (fCheckPoints.size() > 0)) {
fCurrentTime = signal.getCurrentTime();
fIsSelect = true;
moveToMessage();
@@ -450,7 +449,7 @@ public class TmfUml2SDSyncLoader extends TmfComponent implements IUml2SDLoader,
public void synchToTimeRange(TmfRangeSynchSignal signal) {
fLock.lock();
try {
- if ((signal.getSource() != this) && (fFrame != null) && !fIsSignalSent) {
+ if ((signal.getSource() != this) && (fFrame != null) && !fIsSignalSent && (fCheckPoints.size() > 0)) {
TmfTimeRange newTimeRange = signal.getCurrentRange();
ITmfTimestamp delta = newTimeRange.getEndTime().getDelta(newTimeRange.getStartTime());
fInitialWindow = delta.getValue();