camera opens the first time but is being passed a null preview so it crashes the next time it tries to open