title: Image gets duplicated in imageloader
body: <p>I am using <code>imageloader</code> in <code>getView()</code> like below. But I am not able to get the <code>ic_launcher</code> as a default image when <code>picturepath</code> is empty. I don't know what's going wrong. But when I debug, I am able to find that it goes to else part itself when picturepath is empty. But still somehow the existed imagepaths image gets loaded. That too this happens only for the first row of the list. Can some one please help me solve the issue?</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
              ViewHolder vh = null;
              if (convertView == null)
              {
                  convertView = View.inflate(context, layoutResourceId, null);
                  vh = new ViewHolder();
                  vh.nameTextView = (TextView) convertView.findViewById(R.id.name);
  
                  vh.imageView = (ImageView) convertView.findViewById(R.id.list_image);
  
                  convertView.setTag(vh);
              }else{
                  vh = (ViewHolder)convertView.getTag();
              }
  
              String picturePath = detailsUrl.get(position);
  
              vh.nameTextView.setText("Name: "+name);
              if(picturePath !=null &amp;&amp; !picturePath.equals(""))
              {
              imageLoader.displayImage("file://"+picturePath , vh.imageView);
              }
              else
              {
                       // I am able to see here the control flows when the imagepath is empty
                  vh.imageView.setImageResource(R.drawable.ic_launcher);  
              }
  
  
          return (row);       
          }
  </code></pre>