| author | Mathieu Denis | 2012-05-14 16:03:28 (EDT) |
|---|---|---|
| committer | Matthew Khouzam | 2012-05-14 16:07:26 (EDT) |
| commit | d1de21ae88fefb31d1edd81e509ca93222b5259f (patch) (side-by-side diff) | |
| tree | 93b279552c086981b4618bea1425263e5279c74c | |
| parent | 9716e61fa1550422463f938cf0767a0130187ef5 (diff) | |
| download | org.eclipse.linuxtools-d1de21ae88fefb31d1edd81e509ca93222b5259f.zip org.eclipse.linuxtools-d1de21ae88fefb31d1edd81e509ca93222b5259f.tar.gz org.eclipse.linuxtools-d1de21ae88fefb31d1edd81e509ca93222b5259f.tar.bz2 | |
Fixed lost event bug.
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
| -rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java index 537dca4..dd627fa 100644 --- a/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java +++ b/lttng/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/ctfadaptor/CtfTmfEvent.java @@ -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; } /** |

