where does the nullpointer points out in your line of code? , in that way you/we can determine or atleast have a clue to what causes the exception.. i think its on the constructor of your class