hello

u have no initialized the variable i, and as its null the assignment won't work at the bottom part of the code.

regards

Liyakat