From 28ad5a30f5b3c1cf99a4d5dd1adc81bb4d57fe0e Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 6 Sep 2018 18:11:23 +0200 Subject: [PATCH] Fixed bug in updater --- Assets/RothenburgAR/Scripts/Updater/UpdaterBehaviour.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/RothenburgAR/Scripts/Updater/UpdaterBehaviour.cs b/Assets/RothenburgAR/Scripts/Updater/UpdaterBehaviour.cs index 7c4ad83..2f445f2 100644 --- a/Assets/RothenburgAR/Scripts/Updater/UpdaterBehaviour.cs +++ b/Assets/RothenburgAR/Scripts/Updater/UpdaterBehaviour.cs @@ -112,7 +112,7 @@ namespace RothenburgAR.Updater var exhibitionDirs = rootDir.GetDirectories().ToList(); exhibitionDirs.ForEach(dir => { - var subdir = dir.GetDirectories().ToList().First(); + var subdir = dir.GetDirectories().ToList().FirstOrDefault(); if (subdir == null) return; var metaFilePath = Path.Combine(subdir.FullName, "meta.json");