summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-13 13:11:52 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-13 13:11:52 +0000
commit5a2198614cdc40091cde4879d43a90b45ba10cee (patch)
treea5e076c517b7acf014b1914aa1b86ad5e08eca48
parent1454b2a53e63783f7f92ccd5226dc54c116e5576 (diff)
fix for null string for LangpackSuite
git-svn-id: http://svn.miranda-ng.org/main/trunk@5353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--tools/Langpack Suite/Form1.cs10
1 files changed, 6 insertions, 4 deletions
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();
}
}
}