Where is the data array declared? Please post the full code. Also the exception seems to be thrown by a method which you did not posted here.

application context