If the custom event content is read before the event timestamp, it could
be undefined as the event data hasn't be processed yet. This can happen
in test code.
Change-Id: Idab415eb8015f1a7035bee11582d0baad89cad5b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/61204
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
@Override
public ITmfEventField getContent() {
+ if (fData != null) {
+ processData();
+ }
return customEventContent;
}
fColumnData[i++] = new TmfEventField(outputColumn.name, (value != null ? value : ""), null); //$NON-NLS-1$
}
}
- CustomEventContent curContent = (CustomEventContent) getContent();
- setContent(new CustomEventContent(curContent.getName(), curContent.getValue(), fColumnData));
+ setContent(new CustomEventContent(customEventContent.getName(), customEventContent.getValue(), fColumnData));
fData = null;
}