Add avoiding NullPointerException when camera is not connected.