From bf5e854f39955cfa9ca9e5bbf8bcbf4cd00b3eff Mon Sep 17 00:00:00 2001 From: Andy Gee Date: Mon, 21 Sep 2020 17:01:57 -0700 Subject: [PATCH] add null check for trips call --- src/tripviewer/web/Controllers/TripController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tripviewer/web/Controllers/TripController.cs b/src/tripviewer/web/Controllers/TripController.cs index 8db729da..48929def 100644 --- a/src/tripviewer/web/Controllers/TripController.cs +++ b/src/tripviewer/web/Controllers/TripController.cs @@ -48,7 +48,7 @@ private List getRandomTripPoints() TripStore t = new TripStore(teamendpoint); List trips = t.GetItemsAsync().Result; - if (trips.Count == 0){ + if (trips == null || trips.Count == 0){ return new List(); }