Program: 34095
Project: 34095
Buggy source:
@Override protected void onPostExecute(Drawable result){
  try {
    if (!showImagesVideo)     return;
    Log.d(TAG,"String_Node_Str" + successiveFailureCount);
    if (!paused && !end) {
      if (result != null) {
        Log.d(TAG,"String_Node_Str");
        if (result.getIntrinsicWidth() > 0 && result.getIntrinsicHeight() > 0) {
          if (myStartImageTime >= latestStartImageTime) {
            latestStartImageTime=myStartImageTime;
            if (mediaPlayerView.getVisibility() != View.VISIBLE && VideoActivity.this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)             VideoActivity.this.getActionBar().hide();
            if (showImagesVideo && cameraId.equals(evercamCamera.getCameraId())) {
              imageView.setImageDrawable(result);
            }
            hideProgressView();
            startTimeCounter();
            if (!isJpgSuccessful) {
              isJpgSuccessful=true;
              EvercamPlayApplication.sendEventAnalytics(VideoActivity.this,R.string.category_streaming_jpg,R.string.action_streaming_jpg_success,R.string.label_streaming_jpg_success);
              StreamFeedbackItem successItem=new StreamFeedbackItem(VideoActivity.this,AppData.defaultUser.getUsername(),true);
              successItem.setCameraId(evercamCamera.getCameraId());
              successItem.setUrl(successUrl);
              successItem.setType(StreamFeedbackItem.TYPE_JPG);
              logger.info(successItem.toJson());
              successItem.sendToKeenIo(client);
            }
 else {
            }
          }
 else {
            if (enableLogs)             Log.i(TAG,"String_Node_Str");
          }
        }
      }
 else {
        Log.d(TAG,"String_Node_Str");
        if (successiveFailureCount > 10 && !isShowingFailureMessage) {
          Log.d(TAG,"String_Node_Str");
          if (myStartImageTime >= latestStartImageTime) {
            Log.d(TAG,"String_Node_Str");
            showMediaFailureDialog();
            browseJpgTask.cancel(true);
            EvercamPlayApplication.sendEventAnalytics(VideoActivity.this,R.string.category_streaming_jpg,R.string.action_streaming_jpg_failed,R.string.label_streaming_jpg_failed);
            StreamFeedbackItem failedItem=new StreamFeedbackItem(VideoActivity.this,AppData.defaultUser.getUsername(),false);
            failedItem.setCameraId(evercamCamera.getCameraId());
            failedItem.setUrl(evercamCamera.getExternalSnapshotUrl());
            failedItem.setType(StreamFeedbackItem.TYPE_JPG);
            logger.info(failedItem.toJson());
            failedItem.sendToKeenIo(client);
          }
        }
      }
    }
 else {
      Log.d(TAG,"String_Node_Str");
    }
  }
 catch (  OutOfMemoryError e) {
    if (enableLogs)     Log.e(TAG,e.toString() + "String_Node_Str" + Log.getStackTraceString(e));
  }
catch (  Exception e) {
    if (enableLogs)     Log.e(TAG,e.toString());
    if (Constants.isAppTrackingEnabled) {
      BugSenseHandler.sendException(e);
    }
  }
  startDownloading=true;
}

Fixed version (ground truth):
@Override protected void onPostExecute(Drawable result){
  try {
    if (!showImagesVideo)     return;
    Log.d(TAG,"String_Node_Str" + successiveFailureCount);
    if (!paused && !end) {
      if (result != null) {
        Log.d(TAG,"String_Node_Str");
        if (result.getIntrinsicWidth() > 0 && result.getIntrinsicHeight() > 0) {
          if (myStartImageTime >= latestStartImageTime) {
            latestStartImageTime=myStartImageTime;
            if (mediaPlayerView.getVisibility() != View.VISIBLE && VideoActivity.this.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)             VideoActivity.this.getActionBar().hide();
            if (showImagesVideo && cameraId.equals(evercamCamera.getCameraId())) {
              imageView.setImageDrawable(result);
            }
 else             if (!cameraId.equals(evercamCamera.getCameraId())) {
              Log.e(TAG,"String_Node_Str");
            }
            hideProgressView();
            startTimeCounter();
            if (!isJpgSuccessful) {
              isJpgSuccessful=true;
              EvercamPlayApplication.sendEventAnalytics(VideoActivity.this,R.string.category_streaming_jpg,R.string.action_streaming_jpg_success,R.string.label_streaming_jpg_success);
              StreamFeedbackItem successItem=new StreamFeedbackItem(VideoActivity.this,AppData.defaultUser.getUsername(),true);
              successItem.setCameraId(evercamCamera.getCameraId());
              successItem.setUrl(successUrl);
              successItem.setType(StreamFeedbackItem.TYPE_JPG);
              logger.info(successItem.toJson());
              successItem.sendToKeenIo(client);
            }
 else {
            }
          }
 else {
            if (enableLogs)             Log.i(TAG,"String_Node_Str");
          }
        }
      }
 else {
        Log.d(TAG,"String_Node_Str");
        if (successiveFailureCount > 10 && !isShowingFailureMessage) {
          Log.d(TAG,"String_Node_Str");
          if (myStartImageTime >= latestStartImageTime) {
            Log.d(TAG,"String_Node_Str");
            showMediaFailureDialog();
            browseJpgTask.cancel(true);
            EvercamPlayApplication.sendEventAnalytics(VideoActivity.this,R.string.category_streaming_jpg,R.string.action_streaming_jpg_failed,R.string.label_streaming_jpg_failed);
            StreamFeedbackItem failedItem=new StreamFeedbackItem(VideoActivity.this,AppData.defaultUser.getUsername(),false);
            failedItem.setCameraId(evercamCamera.getCameraId());
            failedItem.setUrl(evercamCamera.getExternalSnapshotUrl());
            failedItem.setType(StreamFeedbackItem.TYPE_JPG);
            logger.info(failedItem.toJson());
            failedItem.sendToKeenIo(client);
          }
        }
      }
    }
 else {
      Log.d(TAG,"String_Node_Str");
    }
  }
 catch (  OutOfMemoryError e) {
    if (enableLogs)     Log.e(TAG,e.toString() + "String_Node_Str" + Log.getStackTraceString(e));
  }
catch (  Exception e) {
    if (enableLogs)     Log.e(TAG,e.toString());
    if (Constants.isAppTrackingEnabled) {
      BugSenseHandler.sendException(e);
    }
  }
  startDownloading=true;
}