From 3a7188b36eac88036a365aa2938da9be07b4bb15 Mon Sep 17 00:00:00 2001 From: Pavel_Sorokin Date: Thu, 10 Nov 2022 22:14:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B0?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=BF=D1=83=D1=81=D1=82=D0=BE=D0=B9=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=D0=B8=D0=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Liner/Liner/MapsCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Liner/Liner/MapsCollection.cs b/Liner/Liner/MapsCollection.cs index c3157f7..80106d5 100644 --- a/Liner/Liner/MapsCollection.cs +++ b/Liner/Liner/MapsCollection.cs @@ -68,8 +68,8 @@ namespace Liner } using (StreamReader sr = new(filename)) { - string str = sr.ReadLine(); - if (!str.Contains("MapsCollection")) + string str = ""; + if ((str = sr.ReadLine()) == null || !str.Contains("MapsCollection")) { return false; }