Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AGB on May 27, 2014, 04:02:52 PM

Title: ByteReader null reference
Post by: AGB on May 27, 2014, 04:02:52 PM
Null reference in ByteReader (This place and a bit below in code)
string s = ReadLine(false);
s = s.Replace("\\n", "\n"); <--------- Null reference
if (s == null) return null;

Should it be like this?

string s = ReadLine(false);
if (s == null) return null;
s = s.Replace("\\n", "\n");
Title: Re: ByteReader null reference
Post by: ArenMook on May 28, 2014, 05:43:55 AM
That's already how it is. You should update.