I am getting a NullPointerException at the modelData.add(i, es) method. I know from debugging that es isn\'t null. I\'m r
NullPointerException
modelData.add(i, es)
es
null
On the first look, seems like modelData has not been instantiated. I would instantiate the modelData like:
protected List modelData = new ArrayList();
FYI.. In Java 7 there will be a new syntax you can use- someObject?.doSomething();
someObject?.doSomething();