Buggy code:
public final class GeofenceHardwareImpl { private static final String TAG = "GeofenceHardwareImpl" ; private static final boolean DEBUG = Log . isLoggable ( GeofenceHardwareImpl . TAG , Log . DEBUG ) ; private final Context mContext ; private static GeofenceHardwareImpl sInstance ; private WakeLock mWakeLock ; private final SparseArray < IGeofenceHardwareCallback > mGeofences = new SparseArray < IGeofenceHardwareCallback > ( ) ; private final ArrayList < IGeofenceHardwareMonitorCallback > [ ] mCallbacks = new ArrayList [ GeofenceHardware . NUM_MONITORS ] ; private final ArrayList < GeofenceHardwareImpl . Reaper > mReapers = new ArrayList < GeofenceHardwareImpl . Reaper > ( ) ; private IFusedGeofenceHardware mFusedService ; private IGpsGeofenceHardware mGpsService ; private int [ ] mSupportedMonitorTypes = new int [ GeofenceHardware . NUM_MONITORS ] ; private static final int GEOFENCE_TRANSITION_CALLBACK = 1 ; private static final int ADD_GEOFENCE_CALLBACK = 2 ; private static final int REMOVE_GEOFENCE_CALLBACK = 3 ; private static final int PAUSE_GEOFENCE_CALLBACK = 4 ; private static final int RESUME_GEOFENCE_CALLBACK = 5 ; private static final int GEOFENCE_CALLBACK_BINDER_DIED = 6 ; private static final int GEOFENCE_STATUS = 1 ; private static final int CALLBACK_ADD = 2 ; private static final int CALLBACK_REMOVE = 3 ; private static final int MONITOR_CALLBACK_BINDER_DIED = 4 ; private static final int REAPER_GEOFENCE_ADDED = 1 ; private static final int REAPER_MONITOR_CALLBACK_ADDED = 2 ; private static final int REAPER_REMOVED = 3 ; private static final int LOCATION_INVALID = 0 ; private static final int LOCATION_HAS_LAT_LONG = 1 ; private static final int LOCATION_HAS_ALTITUDE = 2 ; private static final int LOCATION_HAS_SPEED = 4 ; private static final int LOCATION_HAS_BEARING = 8 ; private static final int LOCATION_HAS_ACCURACY = 16 ; private static final int RESOLUTION_LEVEL_NONE = 1 ; private static final int RESOLUTION_LEVEL_COARSE = 2 ; private static final int RESOLUTION_LEVEL_FINE = 3 ; public static synchronized GeofenceHardwareImpl getInstance ( Context context ) { } private GeofenceHardwareImpl ( Context context ) { } private void acquireWakeLock ( ) { } private void releaseWakeLock ( ) { } private void updateGpsHardwareAvailability ( ) { } private void updateFusedHardwareAvailability ( ) { } public void setGpsHardwareGeofence ( IGpsGeofenceHardware service ) { } public void setFusedGeofenceHardware ( IFusedGeofenceHardware service ) { } public int [ ] getMonitoringTypes ( ) { } public int getStatusOfMonitoringType ( int monitoringType ) { } public boolean addCircularFence ( int monitoringType , GeofenceHardwareRequestParcelable request , IGeofenceHardwareCallback callback ) { } public boolean removeGeofence ( int geofenceId , int monitoringType ) { } public boolean pauseGeofence ( int geofenceId , int monitoringType ) { } public boolean resumeGeofence ( int geofenceId , int monitoringType , int monitorTransition ) { } public boolean registerForMonitorStateChangeCallback ( int monitoringType , IGeofenceHardwareMonitorCallback callback ) { } public boolean unregisterForMonitorStateChangeCallback ( int monitoringType , IGeofenceHardwareMonitorCallback callback ) { } public void reportGeofenceTransition ( int geofenceId , Location location , int transition , long transitionTimestamp , int monitoringType , int sourcesUsed ) { if ( location == null ) { <START_BUG> Log . e ( GeofenceHardwareImpl . TAG , String . format ( "Invalid<seq2seq4repair_space>Geofence<seq2seq4repair_space>Transition:<seq2seq4repair_space>location=%p" , location ) ) ; <END_BUG> return ; } if ( GeofenceHardwareImpl . DEBUG ) { Log . d ( GeofenceHardwareImpl . TAG , ( ( ( ( ( ( ( ( ( "GeofenceTransition|<seq2seq4repair_space>" + location ) + ",<seq2seq4repair_space>transition:" ) + transition ) + ",<seq2seq4repair_space>transitionTimestamp:" ) + transitionTimestamp ) + ",<seq2seq4repair_space>monitoringType:" ) + monitoringType ) + ",<seq2seq4repair_space>sourcesUsed:" ) + sourcesUsed ) ) ; } GeofenceHardwareImpl . GeofenceTransition geofenceTransition = new GeofenceHardwareImpl . GeofenceTransition ( geofenceId , transition , transitionTimestamp , location , monitoringType , sourcesUsed ) ; acquireWakeLock ( ) ; Message message = mGeofenceHandler . obtainMessage ( GeofenceHardwareImpl . GEOFENCE_TRANSITION_CALLBACK , geofenceTransition ) ; message . sendToTarget ( ) ; } public void reportGeofenceMonitorStatus ( int monitoringType , int monitoringStatus , Location location , int source ) { } private void reportGeofenceOperationStatus ( int operation , int geofenceId , int operationStatus ) { } public void reportGeofenceAddStatus ( int geofenceId , int status ) { } public void reportGeofenceRemoveStatus ( int geofenceId , int status ) { } public void reportGeofencePauseStatus ( int geofenceId , int status ) { } public void reportGeofenceResumeStatus ( int geofenceId , int status ) { } private Handler mGeofenceHandler = new Handler ( ) { @ Override public void handleMessage ( Message msg ) { } } ; private Handler mCallbacksHandler = new Handler ( ) { @ Override public void handleMessage ( Message msg ) { } } ; private Handler mReaperHandler = new Handler ( ) { @ Override public void handleMessage ( Message msg ) { } } ; private class GeofenceTransition { private int mGeofenceId ; private int mTransition ; private long mTimestamp ; private Location mLocation ; private int mMonitoringType ; private int mSourcesUsed ; GeofenceTransition ( int geofenceId , int transition , long timestamp , Location location , int monitoringType , int sourcesUsed ) { } } private void setMonitorAvailability ( int monitor , int val ) { } int getMonitoringResolutionLevel ( int monitoringType ) { } class Reaper implements IBinder . DeathRecipient { private IGeofenceHardwareMonitorCallback mMonitorCallback ; private IGeofenceHardwareCallback mCallback ; private int mMonitoringType ; Reaper ( IGeofenceHardwareCallback c , int monitoringType ) { } Reaper ( IGeofenceHardwareMonitorCallback c , int monitoringType ) { } @ Override public void binderDied ( ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object obj ) { } private boolean binderEquals ( IInterface left , IInterface right ) { } private boolean unlinkToDeath ( ) { } private boolean callbackEquals ( IGeofenceHardwareCallback cb ) { } } int getAllowedResolutionLevel ( int pid , int uid ) { } }

Fix:
Log . e ( GeofenceHardwareImpl . TAG , String . format ( "Invalid<seq2seq4repair_space>Geofence<seq2seq4repair_space>Transition:<seq2seq4repair_space>location=null" ) ) ;