From 5b5515e7bde6f31b697a85884903d6a9ea00af35 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Mon, 20 Jan 2025 10:41:58 -0500 Subject: [PATCH] Port NPE patch --- .../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); }