Conflicts:
lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java
Change-Id: Ia7e1b8a4cb52d9839f1f6d43d77074e08bcf464f
Signed-off-by: Bernd Hufmann <bhufmann@gmail.com>
CtfIteratorManager.addTrace(this);
CtfTmfLightweightContext ctx;
/* Set the start and (current) end times for this trace */
- ctx = new CtfTmfLightweightContext(this);
- ctx.setLocation(new CtfLocation(0L));
+ ctx = (CtfTmfLightweightContext) seekEvent(0L);
+ CtfTmfEvent event = getNext(ctx);
- 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 {