fixed mysql nullpointer