nullpointer in getcount fixed

gallery adapter getCount()