Program: 98410
Project: 98410
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.enssingle);
  con=this;
  Betreff=(TextView)findViewById(R.id.TxBetreff);
  Absender=(TextView)findViewById(R.id.TxVon);
  Nachricht=(TextView)findViewById(R.id.TxENS);
  ENS=(WebView)findViewById(R.id.WebENS);
  Answer=(Button)findViewById(R.id.BtAnswer);
  if (this.getIntent().getData() != null) {
    Uri data=getIntent().getData();
    List<String> params=data.getPathSegments();
    id2=Long.parseLong(params.get(0));
  }
 else   if (this.getIntent().hasExtra("String_Node_Str")) {
    Bundle bundle=this.getIntent().getExtras();
    id2=bundle.getLong("String_Node_Str");
  }
 else {
    Request.doToast("String_Node_Str",con);
    finish();
  }
  ENSsql SQL=new ENSsql(this);
  SQL.open();
  msg=SQL.getSingleENS(id2);
  SQL.close();
  updateUI();
  if (msg != null && msg.getText() != "String_Node_Str" && msg.getText() != null) {
    return;
  }
  if (id2 != -1) {
    final ENSSingle temp=this;
    final ProgressDialog dialog=ProgressDialog.show(temp,"String_Node_Str","String_Node_Str",true);
    new Thread(new Runnable(){
      public void run(){
        try {
          msg=Request.GetENS(id2);
          saveENS();
        }
 catch (        Exception e) {
          msg=new ENSObject();
          msg.setText("String_Node_Str");
          UserObject o=new UserObject();
          o.setUsername("String_Node_Str");
          o.setId("String_Node_Str");
          o.setSteckbriefFreigabe(false);
          msg.setVon(o);
          msg.setBetreff("String_Node_Str");
        }
        temp.runOnUiThread(new Runnable(){
          public void run(){
            dialog.dismiss();
            updateUI();
          }
        }
);
      }
    }
).start();
  }
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.enssingle);
  con=this;
  Betreff=(TextView)findViewById(R.id.TxBetreff);
  Absender=(TextView)findViewById(R.id.TxVon);
  Nachricht=(TextView)findViewById(R.id.TxENS);
  ENS=(WebView)findViewById(R.id.WebENS);
  Answer=(Button)findViewById(R.id.BtAnswer);
  Uri data=getIntent().getData();
  List<String> params=null;
  try {
    params=data.getPathSegments();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  if (params != null && params.size() > 0) {
    id2=Long.parseLong(params.get(0));
  }
 else   if (this.getIntent().hasExtra("String_Node_Str")) {
    Bundle bundle=this.getIntent().getExtras();
    id2=bundle.getLong("String_Node_Str");
  }
 else {
    Request.doToast("String_Node_Str",con);
    finish();
    return;
  }
  ENSsql SQL=new ENSsql(this);
  SQL.open();
  msg=SQL.getSingleENS(id2);
  SQL.close();
  if (msg != null && msg.getText() != "String_Node_Str" && msg.getText() != null) {
    updateUI();
    return;
  }
  if (id2 != -1) {
    final ENSSingle temp=this;
    final ProgressDialog dialog=ProgressDialog.show(temp,"String_Node_Str","String_Node_Str",true);
    new Thread(new Runnable(){
      public void run(){
        try {
          msg=Request.GetENS(id2);
          saveENS();
        }
 catch (        Exception e) {
          msg=new ENSObject();
          msg.setText("String_Node_Str");
          UserObject o=new UserObject();
          o.setUsername("String_Node_Str");
          o.setId("String_Node_Str");
          o.setSteckbriefFreigabe(false);
          msg.setVon(o);
          msg.setBetreff("String_Node_Str");
        }
        temp.runOnUiThread(new Runnable(){
          public void run(){
            dialog.dismiss();
            updateUI();
          }
        }
);
      }
    }
).start();
  }
}