What could be null on that line? Could lastItemRet be null? Add some println's in there to try and debug, or use a debugger to step through the code and see what is null. Without an SSCCE it is hard...
Type: Posts; User: copeg
What could be null on that line? Could lastItemRet be null? Add some println's in there to try and debug, or use a debugger to step through the code and see what is null. Without an SSCCE it is hard...
Post an SSCCE and the full error code, or else you get guesses. My guess, nextItem is not defined anywhere or is out of scope of the location you are trying to access it.