Fixed bug of null when no camera on db.