Program: 83557
Project: 83557
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.reportissue_layout);
  myactivity=this;
  prefs=PreferenceManager.getDefaultSharedPreferences(myactivity);
  mainview=(ViewFlipper)findViewById(R.id.viewFlipper1);
  viewback=(Button)findViewById(R.id.button1);
  viewback.setEnabled(false);
  viewnext=(Button)findViewById(R.id.button2);
  final Button close=(Button)findViewById(R.id.button6);
  close.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent myintent=new Intent(Intent.ACTION_VIEW);
      myintent.setClassName(myactivity,settings.class.getName());
      startActivity(myintent);
      myactivity.finish();
    }
  }
);
  viewback.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      changestep(false);
    }
  }
);
  viewnext.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      changestep(true);
    }
  }
);
  LinearLayout rootview=(LinearLayout)findViewById(R.id.linearLayout_innserll2);
  TextView textView;
  HttpParams httpParameters=new BasicHttpParams();
  HttpConnectionParams.setConnectionTimeout(httpParameters,10000);
  HttpConnectionParams.setSoTimeout(httpParameters,10000);
  HttpClient httpClient=new DefaultHttpClient(httpParameters);
  HttpContext localContext=new BasicHttpContext();
  HttpGet httpGet=new HttpGet("String_Node_Str");
  HttpResponse response=null;
  try {
    response=httpClient.execute(httpGet,localContext);
  }
 catch (  ClientProtocolException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  if (response == null) {
  }
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
  }
 catch (  IllegalStateException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  String line=null;
  String fullresponse="String_Node_Str";
  ArrayList<Integer> titlestart=new ArrayList<Integer>();
  ArrayList<Integer> titleend=new ArrayList<Integer>();
  ArrayList<Integer> statusstart=new ArrayList<Integer>();
  ArrayList<Integer> statusend=new ArrayList<Integer>();
  ArrayList<Integer> idstart=new ArrayList<Integer>();
  ArrayList<Integer> idend=new ArrayList<Integer>();
  int tempindexof;
  try {
    while ((line=reader.readLine()) != null) {
      fullresponse+=line;
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        titlestart.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        titleend.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        statusstart.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        statusend.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        idstart.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        idend.add(tempindexof);
      }
    }
    for (int titlecount=0; titlecount < titlestart.size() - 1; titlecount++) {
      String titletemp=fullresponse.substring(titlestart.get(titlecount) + "String_Node_Str".length(),titleend.get(titlecount));
      if (!titletemp.equals("String_Node_Str"))       title.add(titletemp);
    }
    for (int idcount=0; idcount < idstart.size() - 1; idcount++) {
      id.add(fullresponse.substring(idstart.get(idcount) + "String_Node_Str".length(),idend.get(idcount)));
    }
    textView=new TextView(this);
    textView.setText("String_Node_Str");
    textView.setOnClickListener(myactivity);
    textView.setId(0);
    rootview.addView(textView);
    for (int statuscount=0; statuscount < statusstart.size() - 1; statuscount++) {
      status.add(fullresponse.substring(statusstart.get(statuscount) + "String_Node_Str".length(),statusend.get(statuscount)));
      textView=new TextView(this);
      textView.setText("String_Node_Str" + title.get(statuscount) + "String_Node_Str"+ status.get(statuscount)+ "String_Node_Str");
      textView.setOnClickListener(myactivity);
      textView.setId(statuscount + 1);
      rootview.addView(textView);
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  final Button getlocat=(Button)findViewById(R.id.button3);
  final Button getlocatnow=(Button)findViewById(R.id.button4);
  final Button getlocatnever=(Button)findViewById(R.id.button5);
  getlocat.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      waitinglogs=true;
      String tickerText="String_Node_Str";
      mNotificationManager=(NotificationManager)myactivity.getSystemService(Context.NOTIFICATION_SERVICE);
      Notification mNotification=new Notification(android.R.drawable.stat_sys_warning,tickerText,System.currentTimeMillis());
      Intent intent;
      intent=new Intent(myactivity,ReportIssue.class);
      PendingIntent mContentIntent=PendingIntent.getActivity(myactivity,0,intent,0);
      RemoteViews contentView=new RemoteViews(myactivity.getPackageName(),R.layout.notification_custom_layout);
      contentView.setImageViewResource(R.id.notification_layout_image,R.drawable.icon);
      contentView.setTextViewText(R.id.notification_layout_text1,"String_Node_Str");
      contentView.setTextViewText(R.id.notification_layout_text2,"String_Node_Str");
      mNotification.contentView=contentView;
      mNotification.contentIntent=mContentIntent;
      mNotificationManager.notify(6,mNotification);
      Intent i=new Intent();
      i.setAction(Intent.ACTION_MAIN);
      i.addCategory(Intent.CATEGORY_HOME);
      myactivity.startActivity(i);
    }
  }
);
  getlocatnow.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      getlog();
    }
  }
);
  getlocatnever.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      gotlogcat=true;
      LiquidSettings.runRootCommand("String_Node_Str");
      LiquidSettings.runRootCommand("String_Node_Str");
      LiquidSettings.runRootCommand("String_Node_Str");
      Toast.makeText(myactivity,"String_Node_Str",4000).show();
    }
  }
);
  accountuser=(EditText)findViewById(R.id.accountuser);
  accountpassword=(EditText)findViewById(R.id.accountpassword);
  issuesummary=(EditText)findViewById(R.id.issuesummary);
  issuedescription=(EditText)findViewById(R.id.issuedescription);
  accountuser.setText(prefs.getString("String_Node_Str","String_Node_Str"));
  accountpassword.setText(prefs.getString("String_Node_Str","String_Node_Str"));
  issuesummary.setText("String_Node_Str");
  String issuedescripttext="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + parsebuildprop.parseString("String_Node_Str") + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + this.getString(R.string.app_vname) + "String_Node_Str";
  try {
    Process process=Runtime.getRuntime().exec("String_Node_Str");
    DataOutputStream os=new DataOutputStream(process.getOutputStream());
    DataInputStream osRes=new DataInputStream(process.getInputStream());
    os.writeBytes("String_Node_Str");
    issuedescripttext+="String_Node_Str" + osRes.readLine() + "String_Node_Str";
    os.flush();
    os.writeBytes("String_Node_Str");
    os.flush();
    process.waitFor();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescription.setText(issuedescripttext);
  issuecategory=(Spinner)findViewById(R.id.spinner1);
  issuepriority=(Spinner)findViewById(R.id.spinner2);
  final Button sendissue=(Button)findViewById(R.id.button7);
  sendissue.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      sendissue();
    }
  }
);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.reportissue_layout);
  myactivity=this;
  prefs=PreferenceManager.getDefaultSharedPreferences(myactivity);
  mainview=(ViewFlipper)findViewById(R.id.viewFlipper1);
  viewback=(Button)findViewById(R.id.button1);
  viewback.setEnabled(false);
  viewnext=(Button)findViewById(R.id.button2);
  final Button close=(Button)findViewById(R.id.button6);
  close.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      Intent myintent=new Intent(Intent.ACTION_VIEW);
      myintent.setClassName(myactivity,settings.class.getName());
      startActivity(myintent);
      myactivity.finish();
    }
  }
);
  viewback.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      changestep(false);
    }
  }
);
  viewnext.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      changestep(true);
    }
  }
);
  LinearLayout rootview=(LinearLayout)findViewById(R.id.linearLayout_innserll2);
  TextView textView;
  HttpParams httpParameters=new BasicHttpParams();
  HttpConnectionParams.setConnectionTimeout(httpParameters,10000);
  HttpConnectionParams.setSoTimeout(httpParameters,10000);
  HttpClient httpClient=new DefaultHttpClient(httpParameters);
  HttpContext localContext=new BasicHttpContext();
  HttpGet httpGet=new HttpGet("String_Node_Str");
  HttpResponse response=null;
  try {
    response=httpClient.execute(httpGet,localContext);
  }
 catch (  ClientProtocolException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  if (response == null) {
  }
  BufferedReader reader=null;
  try {
    reader=new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
  }
 catch (  IllegalStateException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
  String line=null;
  String fullresponse="String_Node_Str";
  ArrayList<Integer> titlestart=new ArrayList<Integer>();
  ArrayList<Integer> titleend=new ArrayList<Integer>();
  ArrayList<Integer> statusstart=new ArrayList<Integer>();
  ArrayList<Integer> statusend=new ArrayList<Integer>();
  ArrayList<Integer> idstart=new ArrayList<Integer>();
  ArrayList<Integer> idend=new ArrayList<Integer>();
  int tempindexof;
  try {
    while ((line=reader.readLine()) != null) {
      fullresponse+=line;
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        titlestart.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        titleend.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        statusstart.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        statusend.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        idstart.add(tempindexof);
      }
    }
    tempindexof=fullresponse.indexOf("String_Node_Str");
    if (tempindexof != -1) {
      tempindexof=0;
      while (tempindexof >= 0) {
        tempindexof=fullresponse.indexOf("String_Node_Str",tempindexof + 1);
        idend.add(tempindexof);
      }
    }
    for (int titlecount=0; titlecount < titlestart.size() - 1; titlecount++) {
      String titletemp=fullresponse.substring(titlestart.get(titlecount) + "String_Node_Str".length(),titleend.get(titlecount));
      if (!titletemp.equals("String_Node_Str"))       title.add(titletemp);
    }
    for (int idcount=0; idcount < idstart.size() - 1; idcount++) {
      id.add(fullresponse.substring(idstart.get(idcount) + "String_Node_Str".length(),idend.get(idcount)));
    }
    textView=new TextView(this);
    textView.setText("String_Node_Str");
    textView.setOnClickListener(myactivity);
    textView.setId(0);
    rootview.addView(textView);
    for (int statuscount=0; statuscount < statusstart.size() - 1; statuscount++) {
      status.add(fullresponse.substring(statusstart.get(statuscount) + "String_Node_Str".length(),statusend.get(statuscount)));
      textView=new TextView(this);
      textView.setText("String_Node_Str" + title.get(statuscount) + "String_Node_Str"+ status.get(statuscount)+ "String_Node_Str");
      textView.setOnClickListener(myactivity);
      textView.setId(statuscount + 1);
      rootview.addView(textView);
    }
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  final Button getlocat=(Button)findViewById(R.id.button3);
  final Button getlocatnow=(Button)findViewById(R.id.button4);
  final Button getlocatnever=(Button)findViewById(R.id.button5);
  getlocat.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      waitinglogs=true;
      String tickerText="String_Node_Str";
      mNotificationManager=(NotificationManager)myactivity.getSystemService(Context.NOTIFICATION_SERVICE);
      Notification mNotification=new Notification(android.R.drawable.stat_sys_warning,tickerText,System.currentTimeMillis());
      Intent intent;
      intent=new Intent(myactivity,ReportIssue.class);
      PendingIntent mContentIntent=PendingIntent.getActivity(myactivity,0,intent,0);
      RemoteViews contentView=new RemoteViews(myactivity.getPackageName(),R.layout.notification_custom_layout);
      contentView.setImageViewResource(R.id.notification_layout_image,R.drawable.icon);
      contentView.setTextViewText(R.id.notification_layout_text1,"String_Node_Str");
      contentView.setTextViewText(R.id.notification_layout_text2,"String_Node_Str");
      mNotification.contentView=contentView;
      mNotification.contentIntent=mContentIntent;
      mNotification.flags=Notification.FLAG_ONGOING_EVENT;
      mNotificationManager.notify(6,mNotification);
      Intent i=new Intent();
      i.setAction(Intent.ACTION_MAIN);
      i.addCategory(Intent.CATEGORY_HOME);
      myactivity.startActivity(i);
    }
  }
);
  getlocatnow.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      getlog();
    }
  }
);
  getlocatnever.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      gotlogcat=true;
      LiquidSettings.runRootCommand("String_Node_Str");
      LiquidSettings.runRootCommand("String_Node_Str");
      LiquidSettings.runRootCommand("String_Node_Str");
      Toast.makeText(myactivity,"String_Node_Str",4000).show();
    }
  }
);
  accountuser=(EditText)findViewById(R.id.accountuser);
  accountpassword=(EditText)findViewById(R.id.accountpassword);
  issuesummary=(EditText)findViewById(R.id.issuesummary);
  issuedescription=(EditText)findViewById(R.id.issuedescription);
  accountuser.setText(prefs.getString("String_Node_Str","String_Node_Str"));
  accountpassword.setText(prefs.getString("String_Node_Str","String_Node_Str"));
  issuesummary.setText("String_Node_Str");
  String issuedescripttext="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + parsebuildprop.parseString("String_Node_Str") + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str" + this.getString(R.string.app_vname) + "String_Node_Str";
  try {
    Process process=Runtime.getRuntime().exec("String_Node_Str");
    DataOutputStream os=new DataOutputStream(process.getOutputStream());
    DataInputStream osRes=new DataInputStream(process.getInputStream());
    os.writeBytes("String_Node_Str");
    issuedescripttext+="String_Node_Str" + osRes.readLine() + "String_Node_Str";
    os.flush();
    os.writeBytes("String_Node_Str");
    os.flush();
    process.waitFor();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
catch (  InterruptedException e) {
    e.printStackTrace();
  }
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str" + "String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescripttext+="String_Node_Str";
  issuedescription.setText(issuedescripttext);
  issuecategory=(Spinner)findViewById(R.id.spinner1);
  issuepriority=(Spinner)findViewById(R.id.spinner2);
  final Button sendissue=(Button)findViewById(R.id.button7);
  sendissue.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      sendissue();
    }
  }
);
}