Program: 62654
Project: 62654
Buggy source:
protected void updateCurrentURIFormatted(){
  String currentURI=null;
  SonosMetaData currentURIMetaData=null;
  SonosMetaData currentTrack=null;
  String coordinator=getCoordinator();
  ZonePlayerHandler coordinatorHandler=getHandlerByName(coordinator);
  if (!isGroupCoordinator() && coordinatorHandler != null) {
    currentURI=coordinatorHandler.getCurrentURI();
    currentURIMetaData=coordinatorHandler.getCurrentURIMetadata();
    currentTrack=coordinatorHandler.getTrackMetadata();
  }
 else {
    currentURI=getCurrentURI();
    currentURIMetaData=getCurrentURIMetadata();
    currentTrack=getTrackMetadata();
  }
  if (currentURI != null) {
    String resultString=null;
    String artist=null;
    String album=null;
    String title=null;
    if (opmlPartnerID != null && currentURI.contains("String_Node_Str")) {
      String stationID=StringUtils.substringBetween(currentURI,"String_Node_Str","String_Node_Str");
      String previousStationID=stateMap.get("String_Node_Str");
      Calendar now=Calendar.getInstance();
      now.setTime(new Date());
      now.add(Calendar.MINUTE,-1);
      if (previousStationID == null || !previousStationID.equals(stationID) || lastOPMLQuery == null || lastOPMLQuery.before(now)) {
        this.onValueReceived("String_Node_Str",stationID,"String_Node_Str");
        String url="String_Node_Str" + "String_Node_Str" + stationID + "String_Node_Str"+ opmlPartnerID+ "String_Node_Str"+ getMACAddress();
        String response=HttpUtil.executeUrl("String_Node_Str",url,SOCKET_TIMEOUT);
        if (lastOPMLQuery == null) {
          lastOPMLQuery=Calendar.getInstance();
        }
        lastOPMLQuery.setTime(new Date());
        if (response != null) {
          List<String> fields=SonosXMLParser.getRadioTimeFromXML(response);
          if (fields != null) {
            resultString=new String();
            title=fields.get(0);
            Iterator<String> listIterator=fields.listIterator();
            while (listIterator.hasNext()) {
              String field=listIterator.next();
              resultString=resultString + field;
              if (listIterator.hasNext()) {
                resultString=resultString + "String_Node_Str";
              }
            }
          }
        }
      }
 else {
        resultString=stateMap.get("String_Node_Str");
        title=stateMap.get("String_Node_Str");
      }
    }
 else {
      if (currentTrack != null) {
        if (!currentTrack.getTitle().contains("String_Node_Str")) {
          if (currentTrack.getAlbumArtist().equals("String_Node_Str")) {
            resultString=currentTrack.getCreator() + "String_Node_Str" + currentTrack.getAlbum()+ "String_Node_Str"+ currentTrack.getTitle();
            artist=currentTrack.getCreator();
          }
 else {
            resultString=currentTrack.getAlbumArtist() + "String_Node_Str" + currentTrack.getAlbum()+ "String_Node_Str"+ currentTrack.getTitle();
            artist=currentTrack.getAlbumArtist();
          }
          album=currentTrack.getAlbum();
          title=currentTrack.getTitle();
        }
      }
 else {
        resultString="String_Node_Str";
      }
    }
    this.onValueReceived("String_Node_Str",resultString,"String_Node_Str");
    this.onValueReceived("String_Node_Str",(artist != null) ? artist : "String_Node_Str","String_Node_Str");
    this.onValueReceived("String_Node_Str",(title != null) ? title : "String_Node_Str","String_Node_Str");
    this.onValueReceived("String_Node_Str",(album != null) ? album : "String_Node_Str","String_Node_Str");
  }
}

Fixed version (ground truth):
protected void updateCurrentURIFormatted(){
  String currentURI=null;
  SonosMetaData currentTrack=null;
  String coordinator=getCoordinator();
  ZonePlayerHandler coordinatorHandler=getHandlerByName(coordinator);
  if (!isGroupCoordinator() && coordinatorHandler != null) {
    currentURI=coordinatorHandler.getCurrentURI();
    currentTrack=coordinatorHandler.getTrackMetadata();
  }
 else {
    currentURI=getCurrentURI();
    currentTrack=getTrackMetadata();
  }
  if (currentURI != null) {
    String resultString=null;
    String artist=null;
    String album=null;
    String title=null;
    if (opmlPartnerID != null && currentURI.contains("String_Node_Str")) {
      String stationID=StringUtils.substringBetween(currentURI,"String_Node_Str","String_Node_Str");
      String previousStationID=stateMap.get("String_Node_Str");
      Calendar now=Calendar.getInstance();
      now.setTime(new Date());
      now.add(Calendar.MINUTE,-1);
      if (previousStationID == null || !previousStationID.equals(stationID) || lastOPMLQuery == null || lastOPMLQuery.before(now)) {
        this.onValueReceived("String_Node_Str",stationID,"String_Node_Str");
        String url="String_Node_Str" + "String_Node_Str" + stationID + "String_Node_Str"+ opmlPartnerID+ "String_Node_Str"+ getMACAddress();
        String response=HttpUtil.executeUrl("String_Node_Str",url,SOCKET_TIMEOUT);
        if (lastOPMLQuery == null) {
          lastOPMLQuery=Calendar.getInstance();
        }
        lastOPMLQuery.setTime(new Date());
        if (response != null) {
          List<String> fields=SonosXMLParser.getRadioTimeFromXML(response);
          if (fields != null) {
            resultString=new String();
            title=fields.get(0);
            Iterator<String> listIterator=fields.listIterator();
            while (listIterator.hasNext()) {
              String field=listIterator.next();
              resultString=resultString + field;
              if (listIterator.hasNext()) {
                resultString=resultString + "String_Node_Str";
              }
            }
          }
        }
      }
 else {
        resultString=stateMap.get("String_Node_Str");
        title=stateMap.get("String_Node_Str");
      }
    }
 else {
      if (currentTrack != null) {
        if (!currentTrack.getTitle().contains("String_Node_Str")) {
          if (currentTrack.getAlbumArtist().equals("String_Node_Str")) {
            resultString=currentTrack.getCreator() + "String_Node_Str" + currentTrack.getAlbum()+ "String_Node_Str"+ currentTrack.getTitle();
            artist=currentTrack.getCreator();
          }
 else {
            resultString=currentTrack.getAlbumArtist() + "String_Node_Str" + currentTrack.getAlbum()+ "String_Node_Str"+ currentTrack.getTitle();
            artist=currentTrack.getAlbumArtist();
          }
          album=currentTrack.getAlbum();
          title=currentTrack.getTitle();
        }
      }
 else {
        resultString="String_Node_Str";
      }
    }
    this.onValueReceived("String_Node_Str",resultString,"String_Node_Str");
    this.onValueReceived("String_Node_Str",(artist != null) ? artist : "String_Node_Str","String_Node_Str");
    this.onValueReceived("String_Node_Str",(title != null) ? title : "String_Node_Str","String_Node_Str");
    this.onValueReceived("String_Node_Str",(album != null) ? album : "String_Node_Str","String_Node_Str");
  }
}