Fix an error if a user forcefully reads after the end of the trace.
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 12 Jun 2012 17:58:53 +0000 (13:58 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Tue, 12 Jun 2012 18:27:27 +0000 (14:27 -0400)
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfTrace.java

index 3450911ba76b93eaa9c837f4c888b22a10fc72e8..76280d1f864d7b066a2b2ac020517d9133bf4fb5 100644 (file)
@@ -247,6 +247,9 @@ public class CtfTmfTrace extends TmfTrace<CtfTmfEvent> implements ITmfEventParse
                 return null;
             }
             CtfTmfLightweightContext ctfContext = (CtfTmfLightweightContext) context;
                 return null;
             }
             CtfTmfLightweightContext ctfContext = (CtfTmfLightweightContext) context;
+            if( ctfContext.getLocation().equals(CtfLocation.INVALID_LOCATION)) {
+                return null;
+            }
             event = ctfContext.getCurrentEvent();
 
             if (event != null) {
             event = ctfContext.getCurrentEvent();
 
             if (event != null) {
This page took 0.024948 seconds and 5 git commands to generate.