Fixed lost event bug.
authorMathieu Denis <mathieu.denis@ericsson.com>
Mon, 14 May 2012 20:03:28 +0000 (16:03 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 14 May 2012 20:07:26 +0000 (16:07 -0400)
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java

index 537dca448e7ff61c78ba682b9f4444cc22935af8..dd627fa018bee0570d13d27df822c66c14aadaef 100644 (file)
@@ -146,7 +146,7 @@ public final class CtfTmfEvent implements ITmfEvent {
      * Inner constructor to create "null" events. Don't use this directly in
      * normal usage, use CtfTmfEvent.getNullEvent() to get an instance of an
      * empty event.
-     * 
+     *
      * This needs to be public however because it's used in extension points,
      * and the framework will use this constructor to get the class type.
      */
@@ -280,7 +280,11 @@ public final class CtfTmfEvent implements ITmfEvent {
      */
     @Override
     public ITmfEventType getType() {
-        return CtfTmfEventType.get(eventName);
+        CtfTmfEventType ctfTmfEventType = CtfTmfEventType.get(eventName);
+        if( ctfTmfEventType == null ){
+            ctfTmfEventType = new CtfTmfEventType( this.getEventName(), this.getContent());
+        }
+        return ctfTmfEventType;
     }
 
     /**
This page took 0.027245 seconds and 5 git commands to generate.