SnapdragonCamera: Fix NPE during camera switch

Issue:
In a corner case, when we switch between front/rear camera
quickly, then currentCamera can be null which leads to null
pointer exception and results in exit camera

Fix:
To avoid the null pointer exception added the null check
on currentCamera.

Change-Id: I0e7dbc91c06bd5b0da7f1e645f2aba156b2fd1a5
1 file changed