© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Null Reference error but it's not null? - C#
C
C#
•
3y ago
•
48 replies
TheStellarOne
Null Reference error but it's not null?
System
.NullReferenceException
:
'Object reference not set to an instance of an object
.
'
Typically yeah this is an easy error to solve
, but I already have defined this
?
Variable
j
j
is already defined as an int with a value of 0
:
int j = 0;
int j = 0;
, so why is this error being thrown
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
✅ null reference
C
C# / help
2y ago
null JObject also it's not null :<
C
C# / help
17mo ago
Null reference exception
C
C# / help
14mo ago
Null Reference Exception
C
C# / help
3y ago