[Mono-dev] System.NullReferenceException, what does it mean?
toshok at ximian.com
Mon Apr 3 17:35:20 EDT 2006
I've just checked in a fix for this to svn.
On Mon, 2006-04-03 at 13:12 -0600, Wade Maxfield wrote:
> The webResponse.ContentEncoding string is "", and Trim() doesn't do
> This makes the responseEncoding string comes back with "", and
> therefore it sticks us-ascii into it. Since we are totally inhouse on
> this one, I can force that. This was a few lines of example code from
> somewhere blended into my current program. I'm still learning.
> Mono throws an error saying that the object is null, as opposed to
> giving it a value of "".
> On 4/3/06, Chris Toshok <toshok at ximian.com> wrote:
> mono stack trace line numbers are generally 1 off. So the
> line which is
> throwing the exception is actually:
> string responseEncoding = webResponse.ContentEncoding.Trim();
> This does in fact work in MS? what's the value of
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list