NEED Help PLEASE

09/19/2014 14:45 MasterCon#1
it's the second day now trying to solve these errors now i'm stuck and donno how to handle this

this line " return Cells[X, Y]; "

throw an exception which says

An unhandled exception of type 'System.NullReferenceException' occurred in NewestCOServer.exe

Additional information: Object reference not set to an instance of an object.
09/19/2014 16:31 Aceking#2
Means that one or more of the variables Cells or X or Y is null.
09/19/2014 17:58 CptSky#3
Quote:
Originally Posted by Aceking View Post
Means that one or more of the variables Cells or X or Y is null.
Probably Cells, as X/Y are probably integers, and aren't nullable type by default.
09/19/2014 18:02 Aceking#4
Quote:
Originally Posted by CptSky View Post
Probably Cells, as X/Y are probably integers, and aren't nullable type by default.
More than likely, but knowing alot of these sources aren't the greatest I didn't want to assume that X/Y was an integer :P
09/20/2014 11:23 abdoumatrix#5
x or y r higher than max x and max y
09/20/2014 13:39 turk55#6
I am pretty confident that Cells[] isn't initialized.