nooby nooby - 14 days ago 6
C# Question

C# System.NullReferenceException NSoup

for (int x = 0; x < 50; x++)
{
NSoupClient.Connect("https://steamcommunity.com/gid/" + x).UserAgent("Firefox").Timeout(10000).Get();
}


This piece of code will throw me this error (and it always stops when the int is 5)

[![An unhandled exception of type 'System.NullReferenceException' occurred in NSoup.dll][1]][1]


enter image description here

Answer

Seems You are not the only having the issue - https://nsoup.codeplex.com/workitem/8

Seems as an issue with library itself.

Comments