From bcbca03ffb4bd48de1d66470373cac1b337a6f36 Mon Sep 17 00:00:00 2001 From: moparisthebest Date: Mon, 20 Nov 2017 20:02:51 -0500 Subject: [PATCH] Add missing null check --- src/main/java/com/moparisthebest/rcrdit/RcrdIt.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/moparisthebest/rcrdit/RcrdIt.java b/src/main/java/com/moparisthebest/rcrdit/RcrdIt.java index 0f0eb7a..84dc60d 100644 --- a/src/main/java/com/moparisthebest/rcrdit/RcrdIt.java +++ b/src/main/java/com/moparisthebest/rcrdit/RcrdIt.java @@ -319,7 +319,7 @@ public class RcrdIt extends ResourceConfig implements AutoCloseable { } } - if(lastStop != null) { // todo: check if lastStop and start are the same, but shouldn't happen? + if(lastStop != null && start != null) { // todo: check if lastStop and start are the same, but shouldn't happen? addMeeting(calendar, tz, lastStop, start, program, md, true); } if(start != null && stop != null) {