Program: 161960
Project: 161960
Buggy source:
public MMPController(){
  super();
  documentModel=new DocumentModel();
  Preferences prefs=Preferences.userNodeForPackage(MMPWindow.class);
  snapToGridXVal=prefs.getInt("String_Node_Str",20);
  snapToGridYVal=prefs.getInt("String_Node_Str",20);
  snapToGridEnabled=prefs.getBoolean("String_Node_Str",false);
  if (MMPController.sender == null) {
    try {
      MMPController.sender=new OSCPortOut(InetAddress.getLocalHost(),54300);
    }
 catch (    UnknownHostException e) {
      System.out.print("String_Node_Str");
    }
catch (    SocketException e) {
      System.out.print("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str");
    }
  }
  if (MMPController.receiver == null) {
    try {
      MMPController.receiver=new OSCPortIn(54310);
      MMPController.receiver.addListener("String_Node_Str",oscListener);
      MMPController.receiver.startListening();
    }
 catch (    SocketException e) {
      System.out.print("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str");
    }
    MMPController.controllerArrayList=new ArrayList<MMPController>();
  }
  if (MMPController.fontArray == null) {
    System.out.print("String_Node_Str" + new File("String_Node_Str").getAbsolutePath());
    try {
      URL url=this.getClass().getResource("String_Node_Str");
      System.out.print("String_Node_Str" + url.getPath());
      BufferedReader reader=new BufferedReader(new InputStreamReader(url.openStream()));
      String line=null;
      StringBuilder stringBuilder=new StringBuilder();
      while ((line=reader.readLine()) != null) {
        stringBuilder.append(line);
      }
      JsonParser parser=new JsonParser();
      JsonArray fontJsonArray=parser.parse(stringBuilder.toString()).getAsJsonArray();
      fontArray=new ArrayList<Map>();
      for (      JsonElement jsonMap : fontJsonArray) {
        Map<String,Object> newMap=new HashMap<String,Object>();
        newMap.put("String_Node_Str",((JsonObject)jsonMap).get("String_Node_Str").getAsString());
        JsonArray typesJsonArray=((JsonObject)jsonMap).get("String_Node_Str").getAsJsonArray();
        List<String> typeList=new ArrayList<String>();
        for (        JsonElement jsonTypeName : typesJsonArray) {
          typeList.add(jsonTypeName.getAsString());
        }
        newMap.put("String_Node_Str",typeList);
        fontArray.add(newMap);
      }
      Collections.sort(fontArray,new FontArrayComparator());
      Map defMap=new HashMap<String,Object>();
      defMap.put("String_Node_Str","String_Node_Str");
      defMap.put("String_Node_Str",new ArrayList<String>());
      fontArray.add(defMap);
    }
 catch (    FileNotFoundException e) {
    }
catch (    IOException e) {
    }
  }
  if (androidFontNameArray == null) {
    androidFontNameArray=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
    for (    String fontName : androidFontNameArray) {
      try {
        InputStream is=this.getClass().getResourceAsStream("String_Node_Str" + fontName + "String_Node_Str");
        GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
        ge.registerFont(Font.createFont(Font.TRUETYPE_FONT,is));
      }
 catch (      IOException e) {
        System.out.print("String_Node_Str");
      }
catch (      FontFormatException e) {
        System.out.print("String_Node_Str");
      }
    }
  }
  System.out.print("String_Node_Str" + this);
  MMPController.controllerArrayList.add(this);
  textLineArray=new ArrayList<String>();
}

Fixed version (ground truth):
public MMPController(){
  super();
  documentModel=new DocumentModel();
  Preferences prefs=Preferences.userNodeForPackage(MMPWindow.class);
  snapToGridXVal=prefs.getInt("String_Node_Str",20);
  snapToGridYVal=prefs.getInt("String_Node_Str",20);
  snapToGridEnabled=prefs.getBoolean("String_Node_Str",false);
  if (MMPController.sender == null) {
    try {
      MMPController.sender=new OSCPortOut(InetAddress.getLocalHost(),54300);
    }
 catch (    UnknownHostException e) {
      System.out.print("String_Node_Str");
    }
catch (    SocketException e) {
      System.out.print("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str");
    }
  }
  if (MMPController.receiver == null) {
    try {
      MMPController.receiver=new OSCPortIn(54310);
      MMPController.receiver.addListener("String_Node_Str",oscListener);
      MMPController.receiver.startListening();
    }
 catch (    SocketException e) {
      System.out.print("String_Node_Str");
      JOptionPane.showMessageDialog(null,"String_Node_Str");
    }
    MMPController.controllerArrayList=new ArrayList<MMPController>();
  }
  if (MMPController.fontArray == null) {
    System.out.print("String_Node_Str" + new File("String_Node_Str").getAbsolutePath());
    try {
      URL url=this.getClass().getResource("String_Node_Str");
      System.out.print("String_Node_Str" + url.getPath());
      BufferedReader reader=new BufferedReader(new InputStreamReader(url.openStream()));
      String line=null;
      StringBuilder stringBuilder=new StringBuilder();
      while ((line=reader.readLine()) != null) {
        stringBuilder.append(line);
      }
      JsonParser parser=new JsonParser();
      JsonArray fontJsonArray=parser.parse(stringBuilder.toString()).getAsJsonArray();
      fontArray=new ArrayList<Map>();
      for (      JsonElement jsonMap : fontJsonArray) {
        Map<String,Object> newMap=new HashMap<String,Object>();
        newMap.put("String_Node_Str",((JsonObject)jsonMap).get("String_Node_Str").getAsString());
        JsonArray typesJsonArray=((JsonObject)jsonMap).get("String_Node_Str").getAsJsonArray();
        List<String> typeList=new ArrayList<String>();
        for (        JsonElement jsonTypeName : typesJsonArray) {
          typeList.add(jsonTypeName.getAsString());
        }
        newMap.put("String_Node_Str",typeList);
        fontArray.add(newMap);
      }
      Collections.sort(fontArray,new FontArrayComparator());
      Map defMap=new HashMap<String,Object>();
      defMap.put("String_Node_Str","String_Node_Str");
      defMap.put("String_Node_Str",new ArrayList<String>());
      fontArray.add(defMap);
    }
 catch (    FileNotFoundException e) {
    }
catch (    IOException e) {
    }
  }
  if (androidFontFileArray == null) {
    androidFontFileArray=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
    androidFontFileToNameMap=new HashMap<String,String>();
    for (    String fontFilename : androidFontFileArray) {
      try {
        InputStream is=this.getClass().getResourceAsStream("String_Node_Str" + fontFilename + "String_Node_Str");
        GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
        Font f=Font.createFont(Font.TRUETYPE_FONT,is);
        ge.registerFont(f);
        String fontName=f.getName();
        androidFontFileToNameMap.put(fontFilename,fontName);
      }
 catch (      IOException e) {
        System.out.print("String_Node_Str");
      }
catch (      FontFormatException e) {
        System.out.print("String_Node_Str");
      }
    }
  }
  System.out.print("String_Node_Str" + this);
  MMPController.controllerArrayList.add(this);
  textLineArray=new ArrayList<String>();
}