1
Vote

Bug in line "while (!(line = reader.ReadLine()).Equals("."))"

description

I locally exchanged the code line by the following code because reader.ReadLine() may return null in which case the nested call .Equals throws an exception. As mentioned I did not check this correction in, someone should do that on the server.
 
Replacement code:
string line = reader.ReadLine();
while (line != null && line != ".")
{
//some code processing the line string
line = reader.ReadLine();
}

comments