Program: 81030
Project: 81030
Buggy source:
/** 
 * Shows a notification icon in the status bar for GPS Logger
 */
private void showNotification(){
  Intent stopLoggingIntent=new Intent(this,GpsLoggingService.class);
  stopLoggingIntent.setAction("String_Node_Str");
  stopLoggingIntent.putExtra(IntentConstants.IMMEDIATE_STOP,true);
  PendingIntent piStop=PendingIntent.getService(this,0,stopLoggingIntent,0);
  Intent annotateIntent=new Intent(this,NotificationAnnotationActivity.class);
  annotateIntent.setAction("String_Node_Str");
  PendingIntent piAnnotate=PendingIntent.getActivity(this,0,annotateIntent,0);
  Intent contentIntent=new Intent(this,GpsMainActivity.class);
  TaskStackBuilder stackBuilder=TaskStackBuilder.create(this);
  stackBuilder.addNextIntent(contentIntent);
  PendingIntent pending=stackBuilder.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);
  CharSequence contentTitle=getString(R.string.gpslogger_still_running);
  CharSequence contentText=getString(R.string.app_name);
  long notificationTime=System.currentTimeMillis();
  if (session.hasValidLocation()) {
    contentTitle=Strings.getFormattedLatitude(session.getCurrentLatitude()) + "String_Node_Str" + Strings.getFormattedLongitude(session.getCurrentLongitude());
    contentText=Html.fromHtml("String_Node_Str" + getString(R.string.txt_altitude) + "String_Node_Str"+ Strings.getDistanceDisplay(this,session.getCurrentLocationInfo().getAltitude(),preferenceHelper.shouldDisplayImperialUnits(),false)+ "String_Node_Str"+ "String_Node_Str"+ getString(R.string.txt_accuracy)+ "String_Node_Str"+ Strings.getDistanceDisplay(this,session.getCurrentLocationInfo().getAltitude(),preferenceHelper.shouldDisplayImperialUnits(),true)+ "String_Node_Str"+ "String_Node_Str"+ getString(R.string.txt_travel_duration)+ "String_Node_Str"+ Strings.getDescriptiveDurationString((int)(System.currentTimeMillis() - session.getStartTimeStamp()) / 1000,this));
    notificationTime=session.getCurrentLocationInfo().getTime();
  }
  if (nfc == null) {
    nfc=new NotificationCompat.Builder(getApplicationContext()).setSmallIcon(R.drawable.notification).setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.gpsloggericon3)).setPriority(preferenceHelper.shouldHideNotificationFromStatusBar() ? NotificationCompat.PRIORITY_MIN : NotificationCompat.PRIORITY_LOW).setCategory(NotificationCompat.CATEGORY_SERVICE).setVisibility(NotificationCompat.VISIBILITY_SECRET).setContentTitle(contentTitle).setContentText(contentText).setStyle(new NotificationCompat.BigTextStyle().bigText(contentText).setBigContentTitle(contentTitle)).setOngoing(true).setContentIntent(pending);
    if (!preferenceHelper.shouldHideNotificationButtons()) {
      nfc.addAction(R.drawable.annotate2,getString(R.string.menu_annotate),piAnnotate).addAction(android.R.drawable.ic_menu_close_clear_cancel,getString(R.string.shortcut_stop),piStop);
    }
  }
  nfc.setContentTitle(contentTitle);
  nfc.setContentText(contentText);
  nfc.setStyle(new NotificationCompat.BigTextStyle().bigText(contentText).setBigContentTitle(contentTitle));
  nfc.setWhen(notificationTime);
  notificationManager=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
  notificationManager.notify(NOTIFICATION_ID,nfc.build());
}

Fixed version (ground truth):
/** 
 * Shows a notification icon in the status bar for GPS Logger
 */
private void showNotification(){
  Intent stopLoggingIntent=new Intent(this,GpsLoggingService.class);
  stopLoggingIntent.setAction("String_Node_Str");
  stopLoggingIntent.putExtra(IntentConstants.IMMEDIATE_STOP,true);
  PendingIntent piStop=PendingIntent.getService(this,0,stopLoggingIntent,0);
  Intent annotateIntent=new Intent(this,NotificationAnnotationActivity.class);
  annotateIntent.setAction("String_Node_Str");
  PendingIntent piAnnotate=PendingIntent.getActivity(this,0,annotateIntent,0);
  Intent contentIntent=new Intent(this,GpsMainActivity.class);
  TaskStackBuilder stackBuilder=TaskStackBuilder.create(this);
  stackBuilder.addNextIntent(contentIntent);
  PendingIntent pending=stackBuilder.getPendingIntent(0,PendingIntent.FLAG_UPDATE_CURRENT);
  CharSequence contentTitle=getString(R.string.gpslogger_still_running);
  CharSequence contentText=getString(R.string.app_name);
  long notificationTime=System.currentTimeMillis();
  if (session.hasValidLocation()) {
    contentTitle=Strings.getFormattedLatitude(session.getCurrentLatitude()) + "String_Node_Str" + Strings.getFormattedLongitude(session.getCurrentLongitude());
    contentText=Html.fromHtml("String_Node_Str" + getString(R.string.txt_altitude) + "String_Node_Str"+ Strings.getDistanceDisplay(this,session.getCurrentLocationInfo().getAltitude(),preferenceHelper.shouldDisplayImperialUnits(),false)+ "String_Node_Str"+ "String_Node_Str"+ getString(R.string.txt_accuracy)+ "String_Node_Str"+ Strings.getDistanceDisplay(this,session.getCurrentLocationInfo().getAccuracy(),preferenceHelper.shouldDisplayImperialUnits(),true)+ "String_Node_Str"+ "String_Node_Str"+ getString(R.string.txt_travel_duration)+ "String_Node_Str"+ Strings.getDescriptiveDurationString((int)(System.currentTimeMillis() - session.getStartTimeStamp()) / 1000,this));
    notificationTime=session.getCurrentLocationInfo().getTime();
  }
  if (nfc == null) {
    nfc=new NotificationCompat.Builder(getApplicationContext()).setSmallIcon(R.drawable.notification).setLargeIcon(BitmapFactory.decodeResource(getResources(),R.drawable.gpsloggericon3)).setPriority(preferenceHelper.shouldHideNotificationFromStatusBar() ? NotificationCompat.PRIORITY_MIN : NotificationCompat.PRIORITY_LOW).setCategory(NotificationCompat.CATEGORY_SERVICE).setVisibility(NotificationCompat.VISIBILITY_SECRET).setContentTitle(contentTitle).setContentText(contentText).setStyle(new NotificationCompat.BigTextStyle().bigText(contentText).setBigContentTitle(contentTitle)).setOngoing(true).setContentIntent(pending);
    if (!preferenceHelper.shouldHideNotificationButtons()) {
      nfc.addAction(R.drawable.annotate2,getString(R.string.menu_annotate),piAnnotate).addAction(android.R.drawable.ic_menu_close_clear_cancel,getString(R.string.shortcut_stop),piStop);
    }
  }
  nfc.setContentTitle(contentTitle);
  nfc.setContentText(contentText);
  nfc.setStyle(new NotificationCompat.BigTextStyle().bigText(contentText).setBigContentTitle(contentTitle));
  nfc.setWhen(notificationTime);
  notificationManager=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);
  notificationManager.notify(NOTIFICATION_ID,nfc.build());
}