title: BitmapDescriptorFactory.fromBitmap(bitmap_Image) giving error while setting custom markers on Google Map v2
body: <pre><code>LinearLayout v = (LinearLayout)view.findViewById(R.id.test2);
  v.setDrawingCacheEnabled(true);
  v.buildDrawingCache();
  final Bitmap bm = view.getDrawingCache();
  BitmapDescriptor iconBitmap = BitmapDescriptorFactory.fromBitmap(bm);
  
  
  MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(latitude[i], longitude[i])).title(name[i]).
                              alpha((float) 0.8).
                              title("3.5").
                              icon(iconBitmap);
  googleMap.addMarker(markerOptions);
  </code></pre>
  
  <p>It is throwing the following error</p>
  
  <blockquote>
    <p>java.lang.NullPointerException
    com.google.android.gms.maps.internal.IGoogleMapDelegate$zza$zza.addMarker(Unknown
    Source)</p>
  </blockquote>