Program: 153090
Project: 153090
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
  Intent intent;
switch (item.getItemId()) {
case R.id.post:
    onClickPostBtn(null);
  return true;
case R.id.possave:
{
  int position=listView.getFirstVisiblePosition();
  registerShiori(position);
}
return true;
case R.id.posload:
try {
HistoryManager man=new HistoryManager();
man.Load();
FutabaThreadContent thread=man.get(threadNum);
int position=thread.pointAt;
if (position != 0) {
listView.setSelection(Math.min(position,adapter.items.size() - 1));
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
 else {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
}
 catch (Exception e) {
FLog.d("String_Node_Str",e);
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
case R.id.share:
intent=new Intent(Intent.ACTION_SEND);
intent.setType("String_Node_Str");
intent.putExtra(Intent.EXTRA_TEXT,threadURL);
try {
startActivityForResult(intent,0);
}
 catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
case R.id.tweet:
String thread_title=statuses.get(0).title;
thread_title=FutabaThreadParser.removeTag(thread_title);
thread_title="String_Node_Str" + thread_title.substring(0,Math.min(30,thread_title.length()));
if (thread_title.length() == 30) {
thread_title=thread_title + "String_Node_Str";
}
String status_encoded=thread_title + "String_Node_Str" + threadURL;
intent=new Intent(Intent.ACTION_SEND);
intent.setType("String_Node_Str");
intent.putExtra(Intent.EXTRA_TEXT,status_encoded + getString(R.string.hashtagstr));
try {
startActivityForResult(intent,0);
}
 catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
case R.id.settings:
intent=new Intent();
intent.setClassName(getPackageName(),getClass().getPackage().getName() + "String_Node_Str");
startActivity(intent);
return true;
case R.id.about:
Uri uri=Uri.parse(getString(R.string.helpurl));
intent=new Intent(Intent.ACTION_VIEW,uri);
intent.setClassName("String_Node_Str","String_Node_Str");
try {
startActivity(intent);
}
 catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
}
return false;
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
  Intent intent;
switch (item.getItemId()) {
case R.id.post:
    onClickPostBtn(null);
  return true;
case R.id.possave:
{
  int position=listView.getFirstVisiblePosition();
  registerShiori(position);
}
return true;
case R.id.posload:
searchShiori();
return true;
case R.id.share:
intent=new Intent(Intent.ACTION_SEND);
intent.setType("String_Node_Str");
intent.putExtra(Intent.EXTRA_TEXT,threadURL);
try {
startActivityForResult(intent,0);
}
 catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
case R.id.tweet:
String thread_title=statuses.get(0).title;
thread_title=FutabaThreadParser.removeTag(thread_title);
thread_title="String_Node_Str" + thread_title.substring(0,Math.min(30,thread_title.length()));
if (thread_title.length() == 30) {
thread_title=thread_title + "String_Node_Str";
}
String status_encoded=thread_title + "String_Node_Str" + threadURL;
intent=new Intent(Intent.ACTION_SEND);
intent.setType("String_Node_Str");
intent.putExtra(Intent.EXTRA_TEXT,status_encoded + getString(R.string.hashtagstr));
try {
startActivityForResult(intent,0);
}
 catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
case R.id.settings:
intent=new Intent();
intent.setClassName(getPackageName(),getClass().getPackage().getName() + "String_Node_Str");
startActivity(intent);
return true;
case R.id.about:
Uri uri=Uri.parse(getString(R.string.helpurl));
intent=new Intent(Intent.ACTION_VIEW,uri);
intent.setClassName("String_Node_Str","String_Node_Str");
try {
startActivity(intent);
}
 catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(this,"String_Node_Str",Toast.LENGTH_SHORT).show();
}
return true;
}
return false;
}