Program: 38315
Project: 38315
Buggy source:
@Override protected void onPostExecute(Boolean result){
  MasterImage.setMaster(mMasterImage);
  if (isCancelled()) {
    return;
  }
  if (!result) {
    cannotLoadImage();
  }
  if (null == CachingPipeline.getRenderScriptContext()) {
    Log.v(LOGTAG,"String_Node_Str");
    return;
  }
  final View loading=findViewById(R.id.loading);
  loading.setVisibility(View.GONE);
  final View imageShow=findViewById(R.id.imageShow);
  imageShow.setVisibility(View.VISIBLE);
  Bitmap largeBitmap=MasterImage.getImage().getOriginalBitmapLarge();
  mBoundService.setOriginalBitmap(largeBitmap);
  float previewScale=(float)largeBitmap.getWidth() / (float)MasterImage.getImage().getOriginalBounds().width();
  mBoundService.setPreviewScaleFactor(previewScale);
  if (!mShowingTinyPlanet) {
    mCategoryFiltersAdapter.removeTinyPlanet();
  }
  MasterImage.getImage().setOriginalGeometry(largeBitmap);
  mCategoryLooksAdapter.imageLoaded();
  mCategoryBordersAdapter.imageLoaded();
  mCategoryGeometryAdapter.imageLoaded();
  mCategoryFiltersAdapter.imageLoaded();
  mLoadBitmapTask=null;
  if (mOriginalPreset != null) {
    MasterImage.getImage().setLoadedPreset(mOriginalPreset);
    MasterImage.getImage().setPreset(mOriginalPreset,mOriginalPreset.getLastRepresentation(),true);
    mOriginalPreset=null;
  }
  if (mAction == TINY_PLANET_ACTION) {
    showRepresentation(mCategoryFiltersAdapter.getTinyPlanet());
  }
  mLoading=false;
  MasterImage.getImage().notifyGeometryChange();
  LoadHighresBitmapTask highresLoad=new LoadHighresBitmapTask();
  highresLoad.execute();
  super.onPostExecute(result);
}

Fixed version (ground truth):
@Override protected void onPostExecute(Boolean result){
  MasterImage.setMaster(mMasterImage);
  if (isCancelled()) {
    return;
  }
  if (!result) {
    cannotLoadImage();
  }
  if (null == CachingPipeline.getRenderScriptContext()) {
    Log.v(LOGTAG,"String_Node_Str");
    return;
  }
  final View loading=findViewById(R.id.loading);
  loading.setVisibility(View.GONE);
  final View imageShow=findViewById(R.id.imageShow);
  imageShow.setVisibility(View.VISIBLE);
  Bitmap largeBitmap=MasterImage.getImage().getOriginalBitmapLarge();
  mBoundService.setOriginalBitmap(largeBitmap);
  float previewScale=(float)largeBitmap.getWidth() / (float)MasterImage.getImage().getOriginalBounds().width();
  mBoundService.setPreviewScaleFactor(previewScale);
  if (!mShowingTinyPlanet) {
    mCategoryFiltersAdapter.removeTinyPlanet();
  }
  MasterImage.getImage().setOriginalGeometry(largeBitmap);
  mCategoryLooksAdapter.imageLoaded();
  mCategoryBordersAdapter.imageLoaded();
  mCategoryGeometryAdapter.imageLoaded();
  mCategoryFiltersAdapter.imageLoaded();
  mLoadBitmapTask=null;
  if (mOriginalPreset != null) {
    MasterImage.getImage().setLoadedPreset(mOriginalPreset);
    MasterImage.getImage().setPreset(mOriginalPreset,mOriginalPreset.getLastRepresentation(),true);
    mOriginalPreset=null;
  }
  if (mAction == TINY_PLANET_ACTION) {
    showRepresentation(mCategoryFiltersAdapter.getTinyPlanet());
  }
  MasterImage.getImage().notifyGeometryChange();
  LoadHighresBitmapTask highresLoad=new LoadHighresBitmapTask();
  highresLoad.execute();
  super.onPostExecute(result);
}