Why would the camera instance be null, if the Camera class knows the name of the Camera !!
for each (var camName:String in Camera.names) {
var camera:Camera = Camera.getCamera(camName);
trace("Camera = " + camera);
if(camName.indexOf("Front") != -1){
cameraIndex = camera.index; //: Causes a null exception to be thrown.
}
}