mariohahn/MHVideoPhotoGallery — pull request #31 by colinhumber (2014-05-28 15:15:49+00:00)
Title: Bounds check when pulling item for page. Preemptive return if no image v...

...iewer available.

Quickly tapping the forward or backwards buttons would cause a crash as the right/leftPressed: methods would be called in rapid succession before they were disabled causing -itemAtIndex: to try and pull an item out of bounds of galleryItems. Also included the nil check for imageViewController before adding it to the pageController.