Program: 26697
Project: 26697
Buggy source:
@SuppressLint("String_Node_Str") @Override public View getView(int i,View view,ViewGroup viewGroup){
  if (view == null) {
    view=getActivity().getLayoutInflater().inflate(R.layout.list_item_nearby_beacon,viewGroup,false);
  }
  TextView titleTextView=(TextView)view.findViewById(R.id.title);
  TextView urlTextView=(TextView)view.findViewById(R.id.url);
  TextView descriptionTextView=(TextView)view.findViewById(R.id.description);
  ImageView iconImageView=(ImageView)view.findViewById(R.id.icon);
  String url=getUrlForListItem(i);
  PwsClient.UrlMetadata urlMetadata=mUrlToUrlMetadata.get(url);
  if (urlMetadata != null) {
    titleTextView.setText(urlMetadata.title);
    urlTextView.setText(urlMetadata.displayUrl);
    descriptionTextView.setText(urlMetadata.description);
    iconImageView.setImageBitmap(urlMetadata.icon);
  }
 else {
    titleTextView.setText("String_Node_Str");
    iconImageView.setImageDrawable(null);
    urlTextView.setText(url);
    descriptionTextView.setText(R.string.metadata_loading);
  }
  if (mDebugRangingViewEnabled) {
    updateRangingDebugView(url,view);
    view.findViewById(R.id.ranging_debug_container).setVisibility(View.VISIBLE);
    view.findViewById(R.id.metadata_debug_container).setVisibility(View.VISIBLE);
    PwsClient.getInstance(getActivity()).useDevEndpoint();
  }
 else {
    view.findViewById(R.id.ranging_debug_container).setVisibility(View.GONE);
    view.findViewById(R.id.metadata_debug_container).setVisibility(View.GONE);
    PwsClient.getInstance(getActivity()).useProdEndpoint();
  }
  return view;
}

Fixed version (ground truth):
@SuppressLint("String_Node_Str") @Override public View getView(int i,View view,ViewGroup viewGroup){
  if (view == null) {
    view=getActivity().getLayoutInflater().inflate(R.layout.list_item_nearby_beacon,viewGroup,false);
  }
  TextView titleTextView=(TextView)view.findViewById(R.id.title);
  TextView urlTextView=(TextView)view.findViewById(R.id.url);
  TextView descriptionTextView=(TextView)view.findViewById(R.id.description);
  ImageView iconImageView=(ImageView)view.findViewById(R.id.icon);
  String url=getItem(i);
  PwsClient.UrlMetadata urlMetadata=mUrlToUrlMetadata.get(url);
  if (urlMetadata != null) {
    titleTextView.setText(urlMetadata.title);
    urlTextView.setText(urlMetadata.displayUrl);
    descriptionTextView.setText(urlMetadata.description);
    iconImageView.setImageBitmap(urlMetadata.icon);
  }
 else {
    titleTextView.setText("String_Node_Str");
    iconImageView.setImageDrawable(null);
    urlTextView.setText(url);
    descriptionTextView.setText(R.string.metadata_loading);
  }
  if (mDebugRangingViewEnabled) {
    updateRangingDebugView(url,view);
    view.findViewById(R.id.ranging_debug_container).setVisibility(View.VISIBLE);
    view.findViewById(R.id.metadata_debug_container).setVisibility(View.VISIBLE);
    PwsClient.getInstance(getActivity()).useDevEndpoint();
  }
 else {
    view.findViewById(R.id.ranging_debug_container).setVisibility(View.GONE);
    view.findViewById(R.id.metadata_debug_container).setVisibility(View.GONE);
    PwsClient.getInstance(getActivity()).useProdEndpoint();
  }
  return view;
}