X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=ctf%2Forg.eclipse.tracecompass.tmf.ctf.core%2Fsrc%2Forg%2Feclipse%2Ftracecompass%2Ftmf%2Fctf%2Fcore%2Fevent%2FCtfTmfEvent.java;h=eee4ad93efa46c6f9dd4cc128c6b32dbab5c7a56;hb=fafdd006b0a1df7996722bfdf85bb811e8b4b508;hp=334b7409efd1fa60e4219fc10a6c8e5265a59405;hpb=5b6c845638fb092548ea9a51cc8ebf7fd305caaa;p=deliverable%2Ftracecompass.git diff --git a/ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/event/CtfTmfEvent.java b/ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/event/CtfTmfEvent.java index 334b7409ef..eee4ad93ef 100644 --- a/ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/event/CtfTmfEvent.java +++ b/ctf/org.eclipse.tracecompass.tmf.ctf.core/src/org/eclipse/tracecompass/tmf/ctf/core/event/CtfTmfEvent.java @@ -13,6 +13,8 @@ package org.eclipse.tracecompass.tmf.ctf.core.event; +import static org.eclipse.tracecompass.common.core.NonNullUtils.checkNotNull; + import java.util.ArrayList; import java.util.HashSet; import java.util.List; @@ -258,7 +260,8 @@ public class CtfTmfEvent extends TmfEvent if (structFields != null) { if (structFields.getFieldNames() != null) { for (String curFieldName : structFields.getFieldNames()) { - fields.add(CtfTmfEventField.parseField((IDefinition) structFields.getDefinition(curFieldName), curFieldName)); + String fn = checkNotNull(curFieldName); + fields.add(CtfTmfEventField.parseField((IDefinition) structFields.getDefinition(fn), fn)); } } }