Program: 153779
Project: 153779
Buggy source:
public static void connect(){
  if (charserv_io != null) {
    return;
  }
  System.out.println("String_Node_Str");
  charserv_io=new IoLayer("String_Node_Str",8022){
    @Override protected void parse_network_data(    String[] data){
      if (data[0].equals("String_Node_Str") && data.length == 5) {
        Main.game.set_state(Game.GameModes.InGame);
        Player.character_id=Integer.parseInt(data[2]);
        gameserv_io=new IoLayer(data[3],Integer.parseInt(data[4])){
          @Override protected void parse_network_data(          String[] data){
            if (data[0].equals("String_Node_Str") && data.length == 3) {
              System.out.println("String_Node_Str");
              EPlayerLogon event=new EPlayerLogon(new Point(Integer.parseInt(data[1]),Integer.parseInt(data[2])));
              event.post();
            }
            if (data[0].equals("String_Node_Str")) {
              Entity player_ent=new EntityNPC();
              EntityManager.add(player_ent);
              player_ent.spawn(Integer.parseInt(data[2]),new Point(Integer.parseInt(data[4]),Integer.parseInt(data[5])));
            }
            if (data[0].equals("String_Node_Str")) {
              Entity ent=EntityManager.get_entity(Integer.parseInt(data[1]));
              EntityManager.remove_entity(ent);
            }
            if (data[0].equals("String_Node_Str")) {
              Entity ent=EntityManager.get_entity(Integer.parseInt(data[1]));
              if (ent != null) {
                ent.move_to(new Point(Integer.parseInt(data[3]),Integer.parseInt(data[4])));
              }
 else {
                System.err.println("String_Node_Str");
              }
            }
          }
        }
;
        gameserv_io.sock_send("String_Node_Str" + Player.character_id);
      }
      if (data[0].equals("String_Node_Str")) {
        ESelectCharacter event=new ESelectCharacter();
        event.post();
      }
    }
  }
;
}

Fixed version (ground truth):
public static void connect(){
  if (charserv_io != null) {
    return;
  }
  System.out.println("String_Node_Str");
  charserv_io=new IoLayer("String_Node_Str",8022){
    @Override protected void parse_network_data(    String[] data){
      if (data[0].equals("String_Node_Str") && data.length == 5) {
        Main.game.set_state(Game.GameModes.InGame);
        Player.character_id=Integer.parseInt(data[2]);
        gameserv_io=new IoLayer(data[3],Integer.parseInt(data[4])){
          @Override protected void parse_network_data(          String[] data){
            if (data[0].equals("String_Node_Str") && data.length == 3) {
              System.out.println("String_Node_Str");
              EPlayerLogon event=new EPlayerLogon(new Point(Integer.parseInt(data[1]),Integer.parseInt(data[2])));
              event.post();
            }
            if (data[0].equals("String_Node_Str")) {
              Entity mplayer_ent=new EntityNPC();
              mplayer_ent.set_controller(new NpcController());
              EntityManager.add(mplayer_ent);
              mplayer_ent.spawn(Integer.parseInt(data[2]),new Point(Integer.parseInt(data[4]),Integer.parseInt(data[5])));
            }
            if (data[0].equals("String_Node_Str")) {
              Entity ent=EntityManager.get_entity(Integer.parseInt(data[1]));
              EntityManager.remove_entity(ent);
            }
            if (data[0].equals("String_Node_Str")) {
              Entity ent=EntityManager.get_entity(Integer.parseInt(data[1]));
              if (ent != null) {
                if (ent.controller != null) {
                  ((NpcController)ent.controller).set_destination(new Point(Integer.parseInt(data[3]),Integer.parseInt(data[4])));
                }
 else {
                  ent.move_to(new Point(Integer.parseInt(data[3]),Integer.parseInt(data[4])));
                }
              }
 else {
                System.err.println("String_Node_Str");
              }
            }
          }
        }
;
        gameserv_io.sock_send("String_Node_Str" + Player.character_id);
      }
      if (data[0].equals("String_Node_Str")) {
        ESelectCharacter event=new ESelectCharacter();
        event.post();
      }
    }
  }
;
}