user reported nullpointer exception fix on select all function