Program: 26274
Project: 26274
Buggy source:
@Override public void onCreate(){
  super.onCreate();
  if (BuildConfig.DEBUG) {
    StrictMode.ThreadPolicy.Builder b=new StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penaltyLog();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
      b.penaltyFlashScreen();
    }
  }
  if (BuildConfig.DEBUG) {
    Timber.plant(new Timber.DebugTree());
  }
 else {
  }
  ACRA.init(this);
  if (mFix == false) {
    URL.setURLStreamHandlerFactory(new OkHttpClient());
    mFix=true;
  }
  mInstance=this;
  mPreferences=getSharedPreferences("String_Node_Str",MODE_PRIVATE);
  try {
    PackageInfo pInfo=getPackageManager().getPackageInfo(getPackageName(),0);
    if (mPreferences.getInt(Const.SETTINGS_VERSION_CODE,0) < pInfo.versionCode)     migrate(mPreferences.getInt(Const.SETTINGS_VERSION_CODE,pInfo.versionCode),pInfo.versionCode);
  }
 catch (  PackageManager.NameNotFoundException e) {
    e.printStackTrace();
  }
  getModelCache();
  getBitmapCache();
  GdgVolley.init(this);
  mPreferences.edit().putInt(Const.SETTINGS_APP_STARTS,mPreferences.getInt(Const.SETTINGS_APP_STARTS,0) + 1).apply();
  mPicasso=new Picasso.Builder(this).downloader(new OkHttpDownloader(this)).memoryCache(new LruCache(this)).build();
  mPicasso.setDebugging(Const.DEVELOPER_MODE);
  mGaInstance=GoogleAnalytics.getInstance(getApplicationContext());
  mTracker=mGaInstance.getTracker(getString(R.string.ga_trackingId));
  GAServiceManager.getInstance().setDispatchPeriod(0);
  mTracker.setAppName(getString(R.string.app_name));
  mTracker.setAnonymizeIp(true);
  mGaInstance.setDefaultTracker(mTracker);
  GoogleAnalytics.getInstance(this).setAppOptOut(mPreferences.getBoolean("String_Node_Str",false));
  mLocationFinder=new GingerbreadLastLocationFinder(this);
  mLocationFinder.setChangedLocationListener(this);
  updateLastLocation();
}

Fixed version (ground truth):
@Override public void onCreate(){
  super.onCreate();
  if (BuildConfig.DEBUG) {
    StrictMode.ThreadPolicy.Builder b=new StrictMode.ThreadPolicy.Builder().detectDiskReads().detectDiskWrites().detectNetwork().penaltyLog();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
      b.penaltyFlashScreen();
    }
  }
  if (BuildConfig.DEBUG) {
    Timber.plant(new Timber.DebugTree());
  }
 else {
  }
  ACRA.init(this);
  if (mFix == false) {
    URL.setURLStreamHandlerFactory(new OkHttpClient());
    mFix=true;
  }
  mInstance=this;
  mPreferences=getSharedPreferences("String_Node_Str",MODE_PRIVATE);
  try {
    PackageInfo pInfo=getPackageManager().getPackageInfo(getPackageName(),0);
    if (mPreferences.getInt(Const.SETTINGS_VERSION_CODE,0) < pInfo.versionCode)     migrate(mPreferences.getInt(Const.SETTINGS_VERSION_CODE,pInfo.versionCode),pInfo.versionCode);
  }
 catch (  PackageManager.NameNotFoundException e) {
    e.printStackTrace();
  }
  getModelCache();
  getBitmapCache();
  GdgVolley.init(this);
  mPreferences.edit().putInt(Const.SETTINGS_APP_STARTS,mPreferences.getInt(Const.SETTINGS_APP_STARTS,0) + 1).apply();
  mPicasso=new Picasso.Builder(this).downloader(new OkHttpDownloader(this)).memoryCache(new LruCache(this)).build();
  mPicasso.setDebugging(BuildConfig.DEBUG);
  mGaInstance=GoogleAnalytics.getInstance(getApplicationContext());
  mTracker=mGaInstance.getTracker(getString(R.string.ga_trackingId));
  GAServiceManager.getInstance().setDispatchPeriod(0);
  mTracker.setAppName(getString(R.string.app_name));
  mTracker.setAnonymizeIp(true);
  mGaInstance.setDefaultTracker(mTracker);
  GoogleAnalytics.getInstance(this).setAppOptOut(mPreferences.getBoolean("String_Node_Str",false));
  mLocationFinder=new GingerbreadLastLocationFinder(this);
  mLocationFinder.setChangedLocationListener(this);
  updateLastLocation();
}