"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
)
)"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Layne Lund:
marc,
I think Goksenin was trying to say that if he removes the "a = new Cells();" then he gets a null pointer exception...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Goksenin Seyhan:
marc, layne, thank you both.
layne you are right if i remove a = new Cells() i get a null pointer exception on this line =
for (int i = 0; i < a.neighbourcell.size(); i++)
it is the first line i get the null pointer exception. then i get the stack trace again and again where it refers to this point(ie, the line that calls this method, then the initialization line of the frame that has the line that calls this method etc etc). if i make a new instance, then all the vector is initialized with 10 nulls, if i dont make a new instance i get null pointer exception. so what to do?
