check null for camera