From 5a2198614cdc40091cde4879d43a90b45ba10cee Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 13 Jul 2013 13:11:52 +0000 Subject: fix for null string for LangpackSuite git-svn-id: http://svn.miranda-ng.org/main/trunk@5353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/Langpack Suite/Form1.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tools/Langpack Suite') diff --git a/tools/Langpack Suite/Form1.cs b/tools/Langpack Suite/Form1.cs index ee4737056e..d3886f342e 100644 --- a/tools/Langpack Suite/Form1.cs +++ b/tools/Langpack Suite/Form1.cs @@ -423,9 +423,11 @@ namespace Langpack_Suite { if (st.StartsWith("Weather ini files:")) { - st = plug_in.ReadLine().Trim(); - st = plug_in.ReadLine().Trim(); - while (st != "") + st = plug_in.ReadLine(); + st = plug_in.ReadLine(); + if (st != "" && st != null) + st = st.Trim(); + while (st != "" && st != null) { int w = st.IndexOf("."); st = st.Substring(0, w); @@ -445,7 +447,7 @@ namespace Langpack_Suite string LocaleText2 = rm.GetString("File2NotFound", culture); InfMessageLangBox.Text = InfMessageLangBox.Text + LocaleText + st + LocaleText2 + "\r\n"; } - st = plug_in.ReadLine().Trim(); + st = plug_in.ReadLine(); } } } -- cgit v1.2.3