From 3199846084e299e3cb239c0941d2e3242ca58bb9 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Thu, 29 Aug 2024 09:24:49 -0400 Subject: [PATCH] [CHORE] NPEs for timestamps --- .../processing/timeseries/TimeSeriesConversionService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/timeseries/TimeSeriesConversionService.java b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/timeseries/TimeSeriesConversionService.java index 2a9f4ffe..816a66fa 100644 --- a/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/timeseries/TimeSeriesConversionService.java +++ b/processing/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/processing/timeseries/TimeSeriesConversionService.java @@ -9,6 +9,9 @@ public class TimeSeriesConversionService { public String toISOString(Long unixTimeStamp) { + if (unixTimeStamp == null) { + return ""; + } Instant instant = Instant.ofEpochMilli(unixTimeStamp); return DateTimeFormatter.ISO_INSTANT.format(instant); }