Program: 78185
Project: 78185
Buggy source:
public void setupPages(){
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.aboutview)){
    @Override public void onEnable(){
    }
  }
);
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.balanceview)){
    @Override public void onEnable(){
    }
  }
);
  final TextView addressinfo=findViewById(R.id.address);
  addressinfo.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ClipboardManager clipboard=(ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);
      ClipData clip=ClipData.newPlainText("String_Node_Str",addressinfo.getText().toString());
      clipboard.setPrimaryClip(clip);
      Toast.makeText(instance,"String_Node_Str",Toast.LENGTH_SHORT).show();
    }
  }
);
  final ImageView qrimagerequest=findViewById(R.id.qrimage);
  qrimagerequest.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      new MaterialDialog.Builder(HomeView.this).title("String_Node_Str").content("String_Node_Str").inputType(InputType.TYPE_NUMBER_FLAG_DECIMAL | InputType.TYPE_CLASS_NUMBER).input("String_Node_Str","String_Node_Str",new MaterialDialog.InputCallback(){
        @Override public void onInput(        MaterialDialog dialog,        CharSequence input){
        }
      }
).positiveText("String_Node_Str").negativeText("String_Node_Str").onPositive(new MaterialDialog.SingleButtonCallback(){
        @Override public void onClick(        @NonNull MaterialDialog dialog,        @NonNull DialogAction which){
          Double amount=Double.parseDouble(dialog.getInputEditText().getText().toString());
          ImageView qrimage=findViewById(R.id.qrreuqestimage);
          Bitmap myBitmap=QRCode.from("String_Node_Str" + "String_Node_Str" + address + "String_Node_Str"+ doubleVal(amount).replace("String_Node_Str","String_Node_Str")+ "String_Node_Str").withSize(600,600).withColor(Color.BLACK,Color.parseColor("String_Node_Str")).bitmap();
          qrimage.setImageBitmap(myBitmap);
          findViewById(R.id.qrrequestview).setVisibility(View.VISIBLE);
        }
      }
).show();
    }
  }
);
  final ImageView qrrequestclose=findViewById(R.id.closeqrrequest);
  qrrequestclose.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      findViewById(R.id.qrrequestview).setVisibility(GONE);
    }
  }
);
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.send)){
    @Override public void onEnable(){
    }
  }
);
  final EditText amountedit=findViewById(R.id.amountto);
  final TextView fee=findViewById(R.id.fee);
  amountedit.addTextChangedListener(new TextWatcher(){
    @Override public void beforeTextChanged(    CharSequence charSequence,    int i,    int i1,    int i2){
    }
    @Override public void onTextChanged(    CharSequence charSequence,    int i,    int i1,    int i2){
    }
    @Override public void afterTextChanged(    Editable editable){
      try {
        String t=editable.toString();
        float d=Float.parseFloat(t + "String_Node_Str");
        double a=d * 0.0025;
        if (a > 10)         a=10.0;
        fee.setText("String_Node_Str" + doubleVal(a).replace("String_Node_Str","String_Node_Str") + "String_Node_Str");
      }
 catch (      Exception e) {
        fee.setText("String_Node_Str");
      }
    }
  }
);
  Button b=findViewById(R.id.sendbutton);
  b.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      try {
        final Double amount=Double.parseDouble(amountedit.getText().toString());
        final String address=((EditText)findViewById(R.id.addressto)).getText().toString();
        final String message=((EditText)findViewById(R.id.messageedit)).getText().toString();
        DecimalFormat format=new DecimalFormat("String_Node_Str");
        String vals=format.format(amount);
        if (!vals.contains("String_Node_Str"))         vals+="String_Node_Str";
        while (vals.split("String_Node_Str")[1].length() < 8)         vals+="String_Node_Str";
        vals=vals.replace("String_Node_Str","String_Node_Str");
        new MaterialDialog.Builder(HomeView.this).title("String_Node_Str").content("String_Node_Str" + doubleVal(amount).replace("String_Node_Str","String_Node_Str") + "String_Node_Str"+ "String_Node_Str"+ address).cancelable(false).positiveText("String_Node_Str").negativeText("String_Node_Str").autoDismiss(false).onPositive(new MaterialDialog.SingleButtonCallback(){
          @Override public void onClick(          @NonNull MaterialDialog dialog,          @NonNull DialogAction which){
            dialog.dismiss();
            final MaterialDialog d=new MaterialDialog.Builder(HomeView.this).title("String_Node_Str").progress(true,100).progressIndeterminateStyle(true).cancelable(false).show();
            makeTransaction(address,amount.doubleValue(),message,new Runnable(){
              @Override public void run(){
                d.dismiss();
              }
            }
);
          }
        }
).show();
      }
 catch (      Exception e) {
      }
    }
  }
);
  qrCodeReaderView=findViewById(R.id.receivescanner);
  savedState=new QRCodeReaderView(this);
  savedState.setId(R.id.receivescanner);
  savedState.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,RelativeLayout.LayoutParams.MATCH_PARENT));
  final QRCodeReaderView.OnQRCodeReadListener listener=createQRlistener();
  qrCodeReaderView.setQRDecodingEnabled(false);
  qrCodeReaderView.setOnQRCodeReadListener(listener);
  qrCodeReaderView.setAutofocusInterval(1000L);
  qrCodeReaderView.setBackCamera();
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.receiveview)){
    @Override public void onEnable(){
      replaceView(qrCodeReaderView,savedState);
      savedState=new QRCodeReaderView(HomeView.this);
      savedState.setId(R.id.receivescanner);
      savedState.setLayoutParams(new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT,RelativeLayout.LayoutParams.MATCH_PARENT));
      qrCodeReaderView=findViewById(R.id.receivescanner);
      qrCodeReaderView.setQRDecodingEnabled(true);
      qrCodeReaderView.startCamera();
      qrCodeReaderView.setQRDecodingEnabled(true);
      qrCodeReaderView.startCamera();
      qrCodeReaderView.bringToFront();
      qrCodeReaderView.setOnQRCodeReadListener(createQRlistener());
      qrCodeReaderView.setAutofocusInterval(1000L);
      qrCodeReaderView.setBackCamera();
      qrCodeReaderView.setQRDecodingEnabled(true);
    }
    @Override public void onDisable(){
      qrCodeReaderView.stopCamera();
      qrCodeReaderView.setQRDecodingEnabled(false);
    }
  }
);
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.historyview)){
    @Override public void onEnable(){
      try {
        String transactions=getString("String_Node_Str");
        final JSONObject p=new JSONObject(transactions);
        sortArrayAndPutInList(p.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
      }
 catch (      Exception e) {
      }
      checkIfLastTransactionIsSame(new LastTransactionTimer(){
        @Override public void onSame(        String id){
          try {
            String transactions=getString("String_Node_Str");
            if (transactions.isEmpty()) {
              downloadTransactions(new Call(){
                @Override public void onDone(                JSONObject o){
                  try {
                    ListView l=findViewById(R.id.historylisttransactions);
                    sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                    Handler h=new Handler(instance.getMainLooper());
                    h.post(new Runnable(){
                      @Override public void run(){
                        findViewById(R.id.progressBar).setVisibility(GONE);
                      }
                    }
);
                  }
 catch (                  Exception e) {
                    e.printStackTrace();
                  }
                }
              }
);
              return;
            }
            final JSONObject p=new JSONObject(transactions);
            JSONArray a=p.getJSONArray("String_Node_Str");
            if (a.length() < 11) {
              downloadTransactions(new Call(){
                @Override public void onDone(                final JSONObject o){
                  try {
                    sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                    Handler h=new Handler(instance.getMainLooper());
                    h.post(new Runnable(){
                      @Override public void run(){
                        findViewById(R.id.progressBar).setVisibility(GONE);
                      }
                    }
);
                  }
 catch (                  Exception e) {
                    e.printStackTrace();
                  }
                }
              }
);
            }
 else {
              String currentID=getString("String_Node_Str");
              if (currentID != ((JSONObject)a.get(0)).get("String_Node_Str")) {
                downloadTransactions(new Call(){
                  @Override public void onDone(                  final JSONObject o){
                    try {
                      sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                      Handler h=new Handler(instance.getMainLooper());
                      h.post(new Runnable(){
                        @Override public void run(){
                          findViewById(R.id.progressBar).setVisibility(GONE);
                        }
                      }
);
                    }
 catch (                    Exception e) {
                      e.printStackTrace();
                    }
                  }
                }
);
              }
 else {
                sortArrayAndPutInList(p.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                Handler h=new Handler(instance.getMainLooper());
                h.post(new Runnable(){
                  @Override public void run(){
                    findViewById(R.id.progressBar).setVisibility(GONE);
                  }
                }
);
              }
            }
          }
 catch (          Exception e) {
            e.printStackTrace();
          }
        }
        @Override public void onDifferect(        String id){
          downloadTransactions(new Call(){
            @Override public void onDone(            JSONObject o){
              try {
                ListView l=findViewById(R.id.historylisttransactions);
                sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                Handler h=new Handler(instance.getMainLooper());
                h.post(new Runnable(){
                  @Override public void run(){
                    findViewById(R.id.progressBar).setVisibility(GONE);
                  }
                }
);
              }
 catch (              Exception e) {
                e.printStackTrace();
              }
            }
          }
);
        }
      }
);
    }
  }
);
}

Fixed version (ground truth):
public void setupPages(){
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.aboutview)){
    @Override public void onEnable(){
    }
  }
);
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.balanceview)){
    @Override public void onEnable(){
    }
  }
);
  final TextView addressinfo=findViewById(R.id.address);
  addressinfo.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      ClipboardManager clipboard=(ClipboardManager)getSystemService(Context.CLIPBOARD_SERVICE);
      ClipData clip=ClipData.newPlainText("String_Node_Str",addressinfo.getText().toString());
      clipboard.setPrimaryClip(clip);
      Toast.makeText(instance,"String_Node_Str",Toast.LENGTH_SHORT).show();
    }
  }
);
  final ImageView qrimagerequest=findViewById(R.id.qrimage);
  qrimagerequest.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      new MaterialDialog.Builder(HomeView.this).title("String_Node_Str").content("String_Node_Str").inputType(InputType.TYPE_NUMBER_FLAG_DECIMAL | InputType.TYPE_CLASS_NUMBER).input("String_Node_Str","String_Node_Str",new MaterialDialog.InputCallback(){
        @Override public void onInput(        MaterialDialog dialog,        CharSequence input){
        }
      }
).positiveText("String_Node_Str").negativeText("String_Node_Str").onPositive(new MaterialDialog.SingleButtonCallback(){
        @Override public void onClick(        @NonNull MaterialDialog dialog,        @NonNull DialogAction which){
          Double amount=Double.parseDouble(dialog.getInputEditText().getText().toString());
          ImageView qrimage=findViewById(R.id.qrreuqestimage);
          Bitmap myBitmap=QRCode.from("String_Node_Str" + "String_Node_Str" + address + "String_Node_Str"+ doubleVal(amount).replace("String_Node_Str","String_Node_Str")+ "String_Node_Str").withSize(600,600).withColor(Color.BLACK,Color.parseColor("String_Node_Str")).bitmap();
          qrimage.setImageBitmap(myBitmap);
          findViewById(R.id.qrrequestview).setVisibility(View.VISIBLE);
        }
      }
).show();
    }
  }
);
  final ImageView qrrequestclose=findViewById(R.id.closeqrrequest);
  qrrequestclose.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      findViewById(R.id.qrrequestview).setVisibility(GONE);
    }
  }
);
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.send)){
    @Override public void onEnable(){
    }
  }
);
  final EditText amountedit=findViewById(R.id.amountto);
  final TextView fee=findViewById(R.id.fee);
  amountedit.addTextChangedListener(new TextWatcher(){
    @Override public void beforeTextChanged(    CharSequence charSequence,    int i,    int i1,    int i2){
    }
    @Override public void onTextChanged(    CharSequence charSequence,    int i,    int i1,    int i2){
    }
    @Override public void afterTextChanged(    Editable editable){
      try {
        String t=editable.toString();
        float d=Float.parseFloat(t + "String_Node_Str");
        double a=d * 0.0025;
        if (a > 10)         a=10.0;
        fee.setText("String_Node_Str" + doubleVal(a).replace("String_Node_Str","String_Node_Str") + "String_Node_Str");
      }
 catch (      Exception e) {
        fee.setText("String_Node_Str");
      }
    }
  }
);
  Button b=findViewById(R.id.sendbutton);
  b.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      try {
        final Double amount=Double.parseDouble(amountedit.getText().toString());
        final String address=((EditText)findViewById(R.id.addressto)).getText().toString();
        final String message=((EditText)findViewById(R.id.messageedit)).getText().toString();
        DecimalFormat format=new DecimalFormat("String_Node_Str");
        String vals=format.format(amount);
        if (!vals.contains("String_Node_Str"))         vals+="String_Node_Str";
        while (vals.split("String_Node_Str")[1].length() < 8)         vals+="String_Node_Str";
        vals=vals.replace("String_Node_Str","String_Node_Str");
        new MaterialDialog.Builder(HomeView.this).title("String_Node_Str").content("String_Node_Str" + doubleVal(amount).replace("String_Node_Str","String_Node_Str") + "String_Node_Str"+ "String_Node_Str"+ address).cancelable(false).positiveText("String_Node_Str").negativeText("String_Node_Str").autoDismiss(false).onPositive(new MaterialDialog.SingleButtonCallback(){
          @Override public void onClick(          @NonNull MaterialDialog dialog,          @NonNull DialogAction which){
            dialog.dismiss();
            final MaterialDialog d=new MaterialDialog.Builder(HomeView.this).title("String_Node_Str").progress(true,100).progressIndeterminateStyle(true).cancelable(false).show();
            makeTransaction(address,amount.doubleValue(),message,new Runnable(){
              @Override public void run(){
                d.dismiss();
              }
            }
);
          }
        }
).show();
      }
 catch (      Exception e) {
      }
    }
  }
);
  qrCodeReaderView=findViewById(R.id.receivescanner);
  final QRCodeReaderView.OnQRCodeReadListener listener=createQRlistener();
  qrCodeReaderView.setQRDecodingEnabled(false);
  qrCodeReaderView.setOnQRCodeReadListener(listener);
  qrCodeReaderView.setAutofocusInterval(1000L);
  qrCodeReaderView.setBackCamera();
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.receiveview)){
    @Override public void onEnable(){
      qrCodeReaderView=findViewById(R.id.receivescanner);
      qrCodeReaderView.setQRDecodingEnabled(true);
      qrCodeReaderView.startCamera();
      qrCodeReaderView.setQRDecodingEnabled(true);
      qrCodeReaderView.startCamera();
      qrCodeReaderView.bringToFront();
      qrCodeReaderView.setOnQRCodeReadListener(createQRlistener());
      qrCodeReaderView.setAutofocusInterval(1000L);
      qrCodeReaderView.setBackCamera();
      qrCodeReaderView.setQRDecodingEnabled(true);
    }
    @Override public void onDisable(){
      qrCodeReaderView.stopCamera();
      qrCodeReaderView.setQRDecodingEnabled(false);
    }
  }
);
  pages.add(new Page("String_Node_Str",(RelativeLayout)findViewById(R.id.historyview)){
    @Override public void onEnable(){
      try {
        String transactions=getString("String_Node_Str");
        final JSONObject p=new JSONObject(transactions);
        sortArrayAndPutInList(p.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
      }
 catch (      Exception e) {
      }
      checkIfLastTransactionIsSame(new LastTransactionTimer(){
        @Override public void onSame(        String id){
          try {
            String transactions=getString("String_Node_Str");
            if (transactions.isEmpty()) {
              downloadTransactions(new Call(){
                @Override public void onDone(                JSONObject o){
                  try {
                    ListView l=findViewById(R.id.historylisttransactions);
                    sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                    Handler h=new Handler(instance.getMainLooper());
                    h.post(new Runnable(){
                      @Override public void run(){
                        findViewById(R.id.progressBar).setVisibility(GONE);
                      }
                    }
);
                  }
 catch (                  Exception e) {
                    e.printStackTrace();
                  }
                }
              }
);
              return;
            }
            final JSONObject p=new JSONObject(transactions);
            JSONArray a=p.getJSONArray("String_Node_Str");
            if (a.length() < 11) {
              downloadTransactions(new Call(){
                @Override public void onDone(                final JSONObject o){
                  try {
                    sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                    Handler h=new Handler(instance.getMainLooper());
                    h.post(new Runnable(){
                      @Override public void run(){
                        findViewById(R.id.progressBar).setVisibility(GONE);
                      }
                    }
);
                  }
 catch (                  Exception e) {
                    e.printStackTrace();
                  }
                }
              }
);
            }
 else {
              String currentID=getString("String_Node_Str");
              if (currentID != ((JSONObject)a.get(0)).get("String_Node_Str")) {
                downloadTransactions(new Call(){
                  @Override public void onDone(                  final JSONObject o){
                    try {
                      sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                      Handler h=new Handler(instance.getMainLooper());
                      h.post(new Runnable(){
                        @Override public void run(){
                          findViewById(R.id.progressBar).setVisibility(GONE);
                        }
                      }
);
                    }
 catch (                    Exception e) {
                      e.printStackTrace();
                    }
                  }
                }
);
              }
 else {
                sortArrayAndPutInList(p.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                Handler h=new Handler(instance.getMainLooper());
                h.post(new Runnable(){
                  @Override public void run(){
                    findViewById(R.id.progressBar).setVisibility(GONE);
                  }
                }
);
              }
            }
          }
 catch (          Exception e) {
            e.printStackTrace();
          }
        }
        @Override public void onDifferect(        String id){
          downloadTransactions(new Call(){
            @Override public void onDone(            JSONObject o){
              try {
                ListView l=findViewById(R.id.historylisttransactions);
                sortArrayAndPutInList(o.getJSONArray("String_Node_Str"),(ListView)findViewById(R.id.historylisttransactions));
                Handler h=new Handler(instance.getMainLooper());
                h.post(new Runnable(){
                  @Override public void run(){
                    findViewById(R.id.progressBar).setVisibility(GONE);
                  }
                }
);
              }
 catch (              Exception e) {
                e.printStackTrace();
              }
            }
          }
);
        }
      }
);
    }
  }
);
}