Buggy code:
public class Controls { private static final String TAG = "Controls" ; public static float xpos1 ; public static float ypos1 ; public static float xpos2 ; public static float ypos2 ; public static float xstart ; public static float ystart ; public static float xrelease ; public static float yrelease ; private static int screenwidth ; private static int screenheight ; private static int moveboundl ; private static int moveboundr ; private static int moveboundt ; private static int moveboundb ; private static int pointerid1 ; private static int pointerid2 ; private static float movex ; private static float movey ; private static float maxx ; private static float maxy ; private static float maxz ; private static float rotation ; private static float oldangle ; private static float zoom ; public static boolean touchstart1 ; public static boolean touchstart2 ; public static boolean touching ; public static boolean released ; public static boolean controllingcam ; public static boolean topdown ; public static boolean rotated ; public static Camera camera ; public static SimpleVector campos ; public static SimpleVector center ; public static SimpleVector camup ; public static SimpleVector camdir ; public static SimpleVector lookat ; public static SimpleVector utility ; public static SimpleVector touchvec ; public static SimpleVector touchvecold ; public static SimpleVector zaxis ; public static SimpleVector yaxis ; public static SimpleVector rightvec ; private static ScaleGestureDetector SGD ; private static Controls . ScaleListener scalelistener ; private static Level level ; static Context context ; private static boolean cameradisabled ; private static class ScaleListener extends ScaleGestureDetector . SimpleOnScaleGestureListener { @ Override public boolean onScale ( ScaleGestureDetector detector ) { } } public static boolean update ( MotionEvent me ) { } private static void primaryFingerReleased ( ) { } private static void getRotation ( MotionEvent me ) { } public static void execute ( ) { } private static void fixCamera ( ) { } public static void activitySetup ( Context context ) { } public static void setup ( Camera cam , Context context ) { } public static void setupLevel ( Level currentlevel , int width , int height ) { Controls . level = currentlevel ; Controls . screenwidth = width ; Controls . screenheight = height ; Controls . moveboundl = width // 8 ; Controls . moveboundr = ( 7 * width ) // 8 ; Controls . moveboundt = height // 8 ; Controls . moveboundb = ( 7 * height ) // 8 ; Controls . zoom = 0 ; Controls . touching = Controls . released = false ; Controls . maxy = ( Controls . level . height ) + 1 ; Controls . maxx = ( Controls . level . width ) + 1 ; Controls . maxz = ( Controls . maxx ) + ( Controls . maxy ) ; <START_BUG> Controls . camera . setPosition ( 4 , 3 , ( - 6 ) ) ; <END_BUG> Controls . campos = Controls . camera . getPosition ( ) ; Log . d ( Controls . TAG , ( "at<seq2seq4repair_space>end<seq2seq4repair_space>of<seq2seq4repair_space>Controls.setupLevel,<seq2seq4repair_space>camera<seq2seq4repair_space>position:<seq2seq4repair_space>" + ( Controls . camera . getPosition ( ) . toString ( ) ) ) ) ; } public static void moveToHome ( ) { } public static void switchCameraMode ( ) { } }

Fix:
Controls . camera . setPosition ( 3 , 3 , ( - 6 ) ) ;