Added cameraParameters checks for null in CC.
Changed static variables usage in CC.