diff options
Diffstat (limited to 'lttng/org.eclipse.linuxtools.tmf.core')
-rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java | 8 |
1 files changed, 7 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 1a329e34ed..c4e67958e1 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 @@ -106,7 +106,12 @@ public class CtfTmfTrace extends TmfEventProvider<CtfTmfEvent> implements ITmfTr this.setStartTime(TmfTimestamp.BIG_BANG); } else { this.setStartTime(iterator.getCurrentEvent().getTimestamp()); - iterator.goToLastEvent(); + /* + * is the trace empty + */ + if( iterator.hasMoreEvents()){ + iterator.goToLastEvent(); + } this.setEndTime(iterator.getCurrentEvent().getTimestamp()); } @@ -514,6 +519,7 @@ public class CtfTmfTrace extends TmfEventProvider<CtfTmfEvent> implements ITmfTr * sub-classes. * @throws TmfTraceException */ + @SuppressWarnings({ "static-method", "unused" }) protected void buildStateSystem() throws TmfTraceException { /* * Nothing is done in the basic implementation, please specify |