Added null check for camera