[GalleryActivity]Check for null path