Program: 63137
Project: 63137
Buggy source:
public static void main(String[] args){
  OntSdk sdk;
  try {
    sdk=getOntSdk();
    String password="String_Node_Str";
    String privatekey1="String_Node_Str";
    Account payerAcct=new Account(Helper.hexToBytes(privatekey1),SignatureScheme.SHA256WITHECDSA);
    String privatekey9="String_Node_Str";
    String privatekey8="String_Node_Str";
    String privatekey7="String_Node_Str";
    Account account9=new Account(Helper.hexToBytes(privatekey9),SignatureScheme.SHA256WITHECDSA);
    String prikey="String_Node_Str";
    prikey="String_Node_Str";
    Account account=new Account(Helper.hexToBytes(prikey),SignatureScheme.SHA256WITHECDSA);
    Account account8=new Account(Helper.hexToBytes(privatekey8),SignatureScheme.SHA256WITHECDSA);
    Account account7=new Account(Helper.hexToBytes(privatekey7),SignatureScheme.SHA256WITHECDSA);
    if (sdk.getWalletMgr().getWallet().getIdentities().size() < 2) {
      Identity identity=sdk.getWalletMgr().createIdentity(password);
      String txhash=sdk.nativevm().ontId().sendRegister(identity,password,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Identity identity2=sdk.getWalletMgr().createIdentity(password);
      String txhash2=sdk.nativevm().ontId().sendRegister(identity2,password,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
      sdk.getWalletMgr().writeWallet();
    }
    if (false) {
      System.out.println(sdk.getConnect().getBalance(account.getAddressU160().toBase58()));
      System.out.println(sdk.nativevm().ong().unclaimOng(account.getAddressU160().toBase58()));
    }
    if (true) {
      Identity identity=sdk.getWalletMgr().createIdentityFromPriKey("String_Node_Str",prikey);
      String txhash=sdk.nativevm().ontId().sendRegister(identity,password,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
    }
    List<Identity> dids=sdk.getWalletMgr().getWallet().getIdentities();
    Identity identity=dids.get(0);
    if (false) {
      String contractAddr="String_Node_Str";
      Identity adminOntid=sdk.getWalletMgr().importIdentity("String_Node_Str",password,Base64.getDecoder().decode("String_Node_Str"),account.getAddressU160().toBase58());
      String txhash=sdk.nativevm().auth().verifyToken(identity.ontid,password,identity.controls.get(0).getSalt(),1,contractAddr,"String_Node_Str");
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
    }
    Account account1=new Account(Helper.hexToBytes(privatekey9),SignatureScheme.SHA256WITHECDSA);
    if (false) {
      sdk.getWalletMgr().importAccount("String_Node_Str",password,account.getAddressU160().toBase58(),Base64.getDecoder().decode("String_Node_Str"));
      String txhash=sdk.nativevm().governance().registerCandidate(account,Helper.toHexString(account7.serializePublicKey()),100000,identity.ontid,password,identity.controls.get(0).getSalt(),1,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
    }
    if (false) {
      Identity adminOntid=sdk.getWalletMgr().importIdentity("String_Node_Str",password,new byte[]{},account.getAddressU160().toBase58());
      String txhash=sdk.nativevm().governance().withdraw(account,new String[]{Helper.toHexString(account7.serializePublicKey())},new long[]{100},payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      System.out.println(sdk.getConnect().getSmartCodeEvent(txhash));
      System.out.println(sdk.getConnect().getBalance(account.getAddressU160().toBase58()));
    }
    if (false) {
      System.out.println("String_Node_Str" + sdk.getConnect().getBalance(account.getAddressU160().toBase58()));
      String res=sdk.nativevm().governance().getPeerPoolMap();
      JSONObject jsr=JSONObject.parseObject(res);
      System.out.println(jsr.getString(Helper.toHexString(account7.serializePublicKey())));
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  OntSdk sdk;
  try {
    sdk=getOntSdk();
    System.out.println(sdk.getConnect().getBalance(Address.parse("String_Node_Str").toBase58()));
    System.out.println(sdk.nativevm().ong().unclaimOng(Address.parse("String_Node_Str").toBase58()));
    System.exit(0);
    String password="String_Node_Str";
    String privatekey1="String_Node_Str";
    Account payerAcct=new Account(Helper.hexToBytes(privatekey1),SignatureScheme.SHA256WITHECDSA);
    String privatekey9="String_Node_Str";
    String privatekey8="String_Node_Str";
    String privatekey7="String_Node_Str";
    Account account9=new Account(Helper.hexToBytes(privatekey9),SignatureScheme.SHA256WITHECDSA);
    String prikey="String_Node_Str";
    Account account=new Account(Helper.hexToBytes(prikey),SignatureScheme.SHA256WITHECDSA);
    Account account8=new Account(Helper.hexToBytes(privatekey8),SignatureScheme.SHA256WITHECDSA);
    Account account7=new Account(Helper.hexToBytes(privatekey7),SignatureScheme.SHA256WITHECDSA);
    if (sdk.getWalletMgr().getWallet().getIdentities().size() < 2) {
      Identity identity=sdk.getWalletMgr().createIdentity(password);
      String txhash=sdk.nativevm().ontId().sendRegister(identity,password,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Identity identity2=sdk.getWalletMgr().createIdentity(password);
      String txhash2=sdk.nativevm().ontId().sendRegister(identity2,password,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
      sdk.getWalletMgr().writeWallet();
    }
    if (false) {
      sdk.nativevm().ont().sendTransfer(account,account9.getAddressU160().toBase58(),100000000,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      System.out.println("String_Node_Str" + sdk.getConnect().getBalance(account.getAddressU160().toBase58()));
      System.out.println("String_Node_Str" + sdk.nativevm().ong().unclaimOng(account.getAddressU160().toBase58()));
      sdk.nativevm().ong().claimOng(account,account9.getAddressU160().toBase58(),640000000000L,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
    }
    if (false) {
      Identity identity=sdk.getWalletMgr().createIdentityFromPriKey(password,prikey);
      String txhash=sdk.nativevm().ontId().sendRegister(identity,password,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
    }
    List<Identity> dids=sdk.getWalletMgr().getWallet().getIdentities();
    Identity identity=dids.get(0);
    System.out.println("String_Node_Str" + identity.ontid);
    System.out.println("String_Node_Str" + sdk.getConnect().getBalance(account9.getAddressU160().toBase58()));
    if (false) {
      String contractAddr="String_Node_Str";
      Identity adminOntid=sdk.getWalletMgr().getWallet().getIdentity("String_Node_Str");
      Object obj=sdk.nativevm().auth().verifyToken(identity.ontid,password,identity.controls.get(0).getSalt(),1,contractAddr,"String_Node_Str");
      System.out.println(obj);
    }
    Account account1=new Account(Helper.hexToBytes(privatekey9),SignatureScheme.SHA256WITHECDSA);
    if (false) {
      sdk.getWalletMgr().importAccount("String_Node_Str",password,account.getAddressU160().toBase58(),Base64.getDecoder().decode("String_Node_Str"));
      String txhash=sdk.nativevm().governance().registerCandidate(account9,Helper.toHexString(account8.serializePublicKey()),100000,identity.ontid,password,identity.controls.get(0).getSalt(),1,payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      Object obj=sdk.getConnect().getSmartCodeEvent(txhash);
      System.out.println(obj);
    }
    if (false) {
      Identity adminOntid=sdk.getWalletMgr().getWallet().getIdentity("String_Node_Str");
      String txhash=sdk.nativevm().governance().withdraw(account9,new String[]{Helper.toHexString(account8.serializePublicKey())},new long[]{100},payerAcct,sdk.DEFAULT_GAS_LIMIT,0);
      Thread.sleep(6000);
      System.out.println(sdk.getConnect().getSmartCodeEvent(txhash));
      System.out.println("String_Node_Str" + sdk.getConnect().getBalance(account9.getAddressU160().toBase58()));
    }
    if (true) {
      System.out.println("String_Node_Str" + sdk.getConnect().getBalance(account9.getAddressU160().toBase58()));
      String res=sdk.nativevm().governance().getPeerPoolMap();
      JSONObject jsr=JSONObject.parseObject(res);
      System.out.println(jsr.getString(Helper.toHexString(account8.serializePublicKey())));
    }
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}