Program: 39390
Project: 39390
Buggy source:
@Override protected void initWidget(){
  linkBt=(FloatingActionButton)findViewById(R.id.fab);
  linkRecordsLv=(ListView)findViewById(R.id.link_records);
  linkRecordsLv.setVisibility(View.GONE);
  View head=View.inflate(this,R.layout.item_link_head,null);
  myHead=(CircleImageView)head.findViewById(R.id.my_head);
  otherHead=(CircleImageView)head.findViewById(R.id.other_head);
  myName=(TextView)head.findViewById(R.id.my_name);
  otherName=(TextView)head.findViewById(R.id.other_name);
  ((ImageView)head.findViewById(R.id.link_image)).setColorFilter(getColor(this,getMainTheme().getMainColorID()));
  head.findViewById(R.id.link_image).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      final MaterialDialog materialDialog=new MaterialDialog(UserLinkActivity.this);
      materialDialog.setTitle("String_Node_Str").setMessage("String_Node_Str");
      materialDialog.setPositiveButton("String_Node_Str",new View.OnClickListener(){
        @Override public void onClick(        View v){
          userLink.deleteInBackground(new DeleteCallback(){
            @Override public void done(            AVException e){
              materialDialog.dismiss();
              linkRecordsLv.setVisibility(View.GONE);
              linkBt.setVisibility(View.VISIBLE);
              otherUserName="String_Node_Str";
              UserManager.userLink=null;
            }
          }
);
        }
      }
);
      materialDialog.setNegativeButton("String_Node_Str",new View.OnClickListener(){
        @Override public void onClick(        View v){
          materialDialog.dismiss();
        }
      }
);
      materialDialog.show();
    }
  }
);
  recordDetailDOs=new ArrayList<>();
  accountRecordAdapter=new AccountRecordAdapter(this,recordDetailDOs);
  linkRecordsLv.addHeaderView(head);
  linkRecordsLv.setAdapter(accountRecordAdapter);
  initUserLink();
}

Fixed version (ground truth):
@Override protected void initWidget(){
  linkBt=(FloatingActionButton)findViewById(R.id.fab);
  linkRecordsLv=(ListView)findViewById(R.id.link_records);
  linkRecordsLv.setVisibility(View.GONE);
  linkBt.setBackgroundTintList(getResources().getColorStateList(getMainTheme().getMainColorID()));
  View head=View.inflate(this,R.layout.item_link_head,null);
  myHead=(CircleImageView)head.findViewById(R.id.my_head);
  otherHead=(CircleImageView)head.findViewById(R.id.other_head);
  myName=(TextView)head.findViewById(R.id.my_name);
  otherName=(TextView)head.findViewById(R.id.other_name);
  ((ImageView)head.findViewById(R.id.link_image)).setColorFilter(getColor(this,getMainTheme().getMainColorID()));
  head.findViewById(R.id.link_image).setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      final MaterialDialog materialDialog=new MaterialDialog(UserLinkActivity.this);
      materialDialog.setTitle("String_Node_Str").setMessage("String_Node_Str");
      materialDialog.setPositiveButton("String_Node_Str",new View.OnClickListener(){
        @Override public void onClick(        View v){
          userLink.deleteInBackground(new DeleteCallback(){
            @Override public void done(            AVException e){
              materialDialog.dismiss();
              linkRecordsLv.setVisibility(View.GONE);
              linkBt.setVisibility(View.VISIBLE);
              otherUserName="String_Node_Str";
              UserManager.userLink=null;
            }
          }
);
        }
      }
);
      materialDialog.setNegativeButton("String_Node_Str",new View.OnClickListener(){
        @Override public void onClick(        View v){
          materialDialog.dismiss();
        }
      }
);
      materialDialog.show();
    }
  }
);
  recordDetailDOs=new ArrayList<>();
  accountRecordAdapter=new AccountRecordAdapter(this,recordDetailDOs);
  linkRecordsLv.addHeaderView(head);
  linkRecordsLv.setAdapter(accountRecordAdapter);
  initUserLink();
}