I get a Java Lang Null Pointer Exception at this code:
for (int i = 0; i<fragen.size(); i++)
{
for (int x = 0; x<dbfragen.size(); x++)
{
if(i == dbfragen.get(x).getFrageNR())
{
if(fragen.get(i).getTyp() == 1)
{
It happens in the last if statement. I used the Log file: fragen.size() is 30 and it crashes at i = 1
this makes no sense to me :O
Please help ;)
dbfragenis null or the object returned bydbfragen.get(x)orfragen.get(i)should be null.