Re-asking because my other thread wasn’t clear and I didn’t understand the true problem.
public class Test extends Survey
{
ArrayList<Answer> answerList;
ArrayList<Question> questionList;
public Test()
{
questionList = new ArrayList<Question>();
answerList = new ArrayList<Answer>();
...
}
...
}
In the eclipse debugger, it’s showing answerList value as null, while questionList is not. What gives?
Edit: Is it possible my debugger is messed up? I can’t get it to stop where I’m setting break points. It’s stopping at old ones and ignoring new ones. I didn’t set up a new configuration or anything.
Keep your breakpoint on the next line to
And then check answerList.
Because If your breakpoint is on the initialization line, that line has not executed yet and the value will be null at that time.