check if record.getDataKey() is null.
if not, check if record.getDataKey() > 0