Program: 13512
Project: 13512
Buggy source:
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (A.getMain() == null || MainActivity.selectedFile == null || MainActivity.cartridgeFile == null) {
    finish();
    return;
  }
  setContentView(R.layout.layout_details);
  TextView tvName=(TextView)findViewById(R.id.layoutDetailsTextViewName);
  tvName.setText(MainActivity.cartridgeFile.name);
  TextView tvState=(TextView)findViewById(R.id.layoutDetailsTextViewState);
  tvState.setText(getString(R.string.author) + "String_Node_Str" + MainActivity.cartridgeFile.author);
  TextView tvDescription=(TextView)findViewById(R.id.layoutDetailsTextViewDescription);
  tvDescription.setText(UtilsGUI.simpleHtml(MainActivity.cartridgeFile.description));
  ImageView ivImage=(ImageView)findViewById(R.id.layoutDetailsImageViewImage);
  try {
    byte[] is=MainActivity.cartridgeFile.getFile(MainActivity.cartridgeFile.splashId);
    Bitmap i=BitmapFactory.decodeByteArray(is,0,is.length);
    MainActivity.setBitmapToImageView(i,ivImage);
  }
 catch (  Exception e) {
  }
  TextView tvText=(TextView)findViewById(R.id.layoutDetailsTextViewImageText);
  tvText.setVisibility(View.GONE);
  TextView tvDistance=(TextView)findViewById(R.id.layoutDetailsTextViewDistance);
  Location loc=new Location(TAG);
  loc.setLatitude(MainActivity.cartridgeFile.latitude);
  loc.setLongitude(MainActivity.cartridgeFile.longitude);
  StringBuilder buff=new StringBuilder();
  buff.append(getString(R.string.distance)).append("String_Node_Str").append("String_Node_Str").append(UtilsFormat.formatDistance(LocationState.getLocation().distanceTo(loc),false)).append("String_Node_Str").append("String_Node_Str").append(getString(R.string.latitude)).append("String_Node_Str").append(UtilsFormat.formatLatitude(MainActivity.cartridgeFile.latitude)).append("String_Node_Str").append(getString(R.string.longitude)).append("String_Node_Str").append(UtilsFormat.formatLatitude(MainActivity.cartridgeFile.longitude));
  tvDistance.setText(Html.fromHtml(buff.toString()));
  CustomDialog.setBottom(this,getString(R.string.start),new CustomDialog.OnClickListener(){
    @Override public boolean onClick(    CustomDialog dialog,    View v,    int btn){
      CartridgeDetailsActivity.this.finish();
      MainActivity.startSelectedCartridge(false);
      return true;
    }
  }
,null,null,getString(R.string.navigate),new CustomDialog.OnClickListener(){
    @Override public boolean onClick(    CustomDialog dialog,    View v,    int btn){
      Location loc=new Location(TAG);
      loc.setLatitude(MainActivity.cartridgeFile.latitude);
      loc.setLongitude(MainActivity.cartridgeFile.longitude);
      Guide guide=new Guide(MainActivity.cartridgeFile.name,loc);
      A.getGuidingContent().guideStart(guide);
      MainActivity.callGudingScreen(CartridgeDetailsActivity.this);
      CartridgeDetailsActivity.this.finish();
      return true;
    }
  }
);
}

Fixed version (ground truth):
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (A.getMain() == null || MainActivity.selectedFile == null || MainActivity.cartridgeFile == null) {
    finish();
    return;
  }
  setContentView(R.layout.layout_details);
  TextView tvName=(TextView)findViewById(R.id.layoutDetailsTextViewName);
  tvName.setText(MainActivity.cartridgeFile.name);
  TextView tvState=(TextView)findViewById(R.id.layoutDetailsTextViewState);
  tvState.setText(getString(R.string.author) + "String_Node_Str" + MainActivity.cartridgeFile.author);
  TextView tvDescription=(TextView)findViewById(R.id.layoutDetailsTextViewDescription);
  tvDescription.setText(UtilsGUI.simpleHtml(MainActivity.cartridgeFile.description));
  ImageView ivImage=(ImageView)findViewById(R.id.layoutDetailsImageViewImage);
  try {
    byte[] is=MainActivity.cartridgeFile.getFile(MainActivity.cartridgeFile.splashId);
    Bitmap i=BitmapFactory.decodeByteArray(is,0,is.length);
    MainActivity.setBitmapToImageView(i,ivImage);
  }
 catch (  Exception e) {
  }
  TextView tvText=(TextView)findViewById(R.id.layoutDetailsTextViewImageText);
  tvText.setVisibility(View.GONE);
  TextView tvDistance=(TextView)findViewById(R.id.layoutDetailsTextViewDistance);
  Location loc=new Location(TAG);
  loc.setLatitude(MainActivity.cartridgeFile.latitude);
  loc.setLongitude(MainActivity.cartridgeFile.longitude);
  String buff=getString(R.string.distance) + "String_Node_Str" + "String_Node_Str"+ UtilsFormat.formatDistance(LocationState.getLocation().distanceTo(loc),false)+ "String_Node_Str"+ "String_Node_Str"+ getString(R.string.latitude)+ "String_Node_Str"+ UtilsFormat.formatLatitude(MainActivity.cartridgeFile.latitude)+ "String_Node_Str"+ getString(R.string.longitude)+ "String_Node_Str"+ UtilsFormat.formatLatitude(MainActivity.cartridgeFile.longitude);
  tvDistance.setText(Html.fromHtml(buff));
  CustomDialog.setBottom(this,getString(R.string.start),new CustomDialog.OnClickListener(){
    @Override public boolean onClick(    CustomDialog dialog,    View v,    int btn){
      CartridgeDetailsActivity.this.finish();
      MainActivity.startSelectedCartridge(false);
      return true;
    }
  }
,null,null,getString(R.string.navigate),new CustomDialog.OnClickListener(){
    @Override public boolean onClick(    CustomDialog dialog,    View v,    int btn){
      Location loc=new Location(TAG);
      loc.setLatitude(MainActivity.cartridgeFile.latitude);
      loc.setLongitude(MainActivity.cartridgeFile.longitude);
      Guide guide=new Guide(MainActivity.cartridgeFile.name,loc);
      A.getGuidingContent().guideStart(guide);
      MainActivity.callGudingScreen(CartridgeDetailsActivity.this);
      CartridgeDetailsActivity.this.finish();
      return true;
    }
  }
);
}