© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
20 replies
Sergonizer

✅ Absolutely clueless about this nullreference exception

So I have this piece of code in my WPF+WCF application. For some reason I get an exception as "i" just doesnt exist ("sess[] was null"), no matter if it is a local variable inside brackets or placed like this. "users" is a list of arrays (chess game where 2 players are in one array).
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

NullReference Exception
C#CC# / help
3y ago
System.NullReference Exception Adding to a Dictionary [Answered]
C#CC# / help
4y ago
❔ NullReference exception thrown when assigning a value to a decimal??
C#CC# / help
4y ago
Exception about disposing DbContext
C#CC# / help
3y ago