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
is already defined as an int with a value of 0:
int j = 0;
, so why is this error being thrown?
image.png
image.png
Was this page helpful?