diff options
author | Bernd Hufmann | 2012-09-07 15:16:20 +0000 |
---|---|---|
committer | Bernd Hufmann | 2012-09-07 18:12:36 +0000 |
commit | de31de7e3bf1552d16ecc11e6bbc952d577672d7 (patch) | |
tree | fe1df1311d9eee898a9b9b7559601b546782c2ba | |
parent | 760c12e15de8d89d026be454096cae3988e9a634 (diff) | |
download | org.eclipse.linuxtools-de31de7e3bf1552d16ecc11e6bbc952d577672d7.tar.gz org.eclipse.linuxtools-de31de7e3bf1552d16ecc11e6bbc952d577672d7.tar.xz org.eclipse.linuxtools-de31de7e3bf1552d16ecc11e6bbc952d577672d7.zip |
Add null check of the current event in initTrace() (Bug 389064)
Change-Id: I7d3212370e46b481ae16660997b9fc6810e11c53
Signed-off-by: Bernd Hufmann <bhufmann@gmail.com>
Reviewed-on: https://git.eclipse.org/r/7662
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
IP-Clean: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
IP-Clean: Patrick Tasse <patrick.tasse@gmail.com>
-rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java index 0c7542bd21..f0f0b1b837 100644 --- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java +++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java @@ -90,7 +90,7 @@ public class CtfTmfTrace extends TmfTrace<CtfTmfEvent> implements ITmfEventParse /* Set the start and (current) end times for this trace */ ctx = new CtfTmfLightweightContext(this); ctx.setLocation(new CtfLocation(0L)); - if(ctx.getLocation().equals(CtfIterator.NULL_LOCATION)) { + if((ctx.getLocation().equals(CtfIterator.NULL_LOCATION)) || (ctx.getCurrentEvent() == null)) { /* Handle the case where the trace is empty */ this.setStartTime(TmfTimestamp.BIG_BANG); } else { |