Program: 54320
Project: 54320
Buggy source:
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (System.getCurrentTarget().hasOpenPorts() == false)   new FinishDialog("String_Node_Str","String_Node_Str",this).show();
 else   if (System.getCurrentTarget().hasOpenPortsWithService() == false)   new FinishDialog("String_Node_Str","String_Node_Str",this).show();
  mSearchToggleButton=(ToggleButton)findViewById(R.id.searchToggleButton);
  mSearchProgress=(ProgressBar)findViewById(R.id.searchActivity);
  mListView=(ExpandableListView)findViewById(R.id.searchListView);
  mAdapter=new ListViewAdapter(this);
  HashMap<String,ArrayList<Vulnerability>> vulnerabilities=System.getCurrentTarget().getVulnerabilities();
  for (  Port port : System.getCurrentTarget().getOpenPorts()) {
    if (port.service != null && port.service.isEmpty() == false) {
      mAdapter.addGroup(port.service);
      if (vulnerabilities.containsKey(port.toString())) {
        for (        Vulnerability v : vulnerabilities.get(port.toString())) {
          mAdapter.addChild(port.service,v);
        }
      }
    }
  }
  mListView.setAdapter(mAdapter);
  mListView.setOnChildClickListener(new OnChildClickListener(){
    @Override public boolean onChildClick(    ExpandableListView parent,    View v,    int groupPosition,    int childPosition,    long id){
      Vulnerability cve=(Vulnerability)mAdapter.getChild(groupPosition,childPosition);
      if (cve != null) {
        String uri="String_Node_Str" + cve.getIdentifier();
        Intent browser=new Intent(Intent.ACTION_VIEW,Uri.parse(uri));
        startActivity(browser);
      }
      return true;
    }
  }
);
  mSearchToggleButton.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      if (mRunning) {
        setStoppedState();
      }
 else {
        setStartedState();
      }
    }
  }
);
}

Fixed version (ground truth):
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (System.getCurrentTarget().hasOpenPorts() == false)   new FinishDialog("String_Node_Str","String_Node_Str",this).show();
 else   if (System.getCurrentTarget().hasOpenPortsWithService() == false)   new FinishDialog("String_Node_Str","String_Node_Str",this).show();
  mSearchToggleButton=(ToggleButton)findViewById(R.id.searchToggleButton);
  mSearchProgress=(ProgressBar)findViewById(R.id.searchActivity);
  mListView=(ExpandableListView)findViewById(R.id.searchListView);
  mAdapter=new ListViewAdapter(this);
  HashMap<String,ArrayList<Vulnerability>> vulnerabilities=System.getCurrentTarget().getVulnerabilities();
  for (  Port port : System.getCurrentTarget().getOpenPorts()) {
    if (port.service != null && port.service.isEmpty() == false) {
      mAdapter.addGroup(port.service);
      if (vulnerabilities.containsKey(port.toString())) {
        for (        Vulnerability v : vulnerabilities.get(port.toString())) {
          mAdapter.addChild(port.service,v);
        }
      }
    }
  }
  mListView.setAdapter(mAdapter);
  mListView.setOnChildClickListener(new OnChildClickListener(){
    @Override public boolean onChildClick(    ExpandableListView parent,    View v,    int groupPosition,    int childPosition,    long id){
      Vulnerability cve=(Vulnerability)mAdapter.getChild(groupPosition,childPosition);
      if (cve != null) {
        String uri="String_Node_Str" + cve.getIdentifier();
        Intent browser=new Intent(Intent.ACTION_VIEW,Uri.parse(uri));
        startActivity(browser);
      }
      return true;
    }
  }
);
  for (int i=0; i < mAdapter.getGroupCount(); i++) {
    mListView.expandGroup(i);
  }
  mSearchToggleButton.setOnClickListener(new OnClickListener(){
    @Override public void onClick(    View v){
      if (mRunning) {
        setStoppedState();
      }
 else {
        setStartedState();
      }
    }
  }
);
}