Fix for crash in PathBarLayer::recomputeComponents

The crash is triggered by our stability test suite. Adding a test
for null on the component to follow the pattern from elsewhere
in the class.

java.lang.NullPointerException
atcom.cooliris.media.PathBarLayer.recomputeComponents(PathBarLayer.java:255)
atcom.cooliris.media.PathBarLayer.pushLabel(PathBarLayer.java:27)
atcom.cooliris.media.GridLayer.setState(GridLayer.java:316)
atcom.cooliris.media.GridInputProcessor.setCurrentSelectedSlot(GridInputProcessor.java:113)
atcom.cooliris.media.GridLayer.setSingleImage(GridLayer.java:1492)
atcom.cooliris.media.Gallery$1.run(Gallery.java:194)

Change-Id: I0c088de34026e0be039e76e0a6107eac093a313e
1 file changed