title: osm bonus pack migration crashing
body: <p>I have a fully functional mapping Android app developed with osmdroid and the (very useful) osm bonus pack library. I have used osmdroid 3.0.10 and osm bonus pack v3.6. I've been meaning to migrate to osm bonus pack v4.2.9 for some time now, to use some of the new features like marker clustering. When I tried to change it all, the first problem came with replacing the grouper of the markers with FolderOverlay, as explained in the osm bonus pack tutorials, and when defining:</p>
  
  <pre class="lang-java prettyprint-override"><code>FolderOverlay = new FolderOverlay(this);
  </code></pre>
  
  <p>It crashes, with the following logcat output</p>
  
  <pre><code>03-27 17:37:54.385      222-222/org.downtherabbithole E/AndroidRuntime﹕ java.lang.RuntimeException: Unable to start activity ComponentInfo{org.downtherabbithole/org.downtherabbithole.GeneralMapViews.GeneralMapActivity}: java.lang.NullPointerException
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
              at android.app.ActivityThread.access$2200(ActivityThread.java:119)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:123)
              at android.app.ActivityThread.main(ActivityThread.java:4363)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:521)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
              at dalvik.system.NativeStart.main(Native Method)
       Caused by: java.lang.NullPointerException
              at org.osmdroid.views.overlay.OverlayManager.setTilesOverlay(OverlayManager.java:92)
              at org.osmdroid.views.overlay.OverlayManager.&lt;init&gt;(OverlayManager.java:27)
              at org.osmdroid.bonuspack.overlays.FolderOverlay.&lt;init&gt;(FolderOverlay.java:24)
              at org.downtherabbithole.droid.GeneralMapViews.GeneralMapActivity.onCreate(GeneralMapActivity.java:128)
              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
              at android.app.ActivityThread.access$2200(ActivityThread.java:119)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:123)
              at android.app.ActivityThread.main(ActivityThread.java:4363)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:521)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>After this, and following the tutorial to use Marker Clustering, I replaced FolderOverlay with GridMarkerClusterer, it doesnt crash, but does later, when trying to set the marker location</p>
  
  <pre class="lang-java prettyprint-override"><code>Marker point = new Marker(mapView);
  point.setPosition(new GeoPoint(XX.XXXXX, YY.YYYYY));
  </code></pre>
  
  <p>It crashes, with the NoSuchMethodError, Geolocation.clone(), why is this trying to call a clone() method on the Geolocation object, it didnt try to do this when i set the ItemizedOverlayWithBubble with osm bonus pack v3.6</p>
  
  <p>Go</p>