Hi, What is shown in logcat is,
05-11 17:41:04.591: INFO/System.out(1183): ######### Ending designMap() : 05-11 17:59:27.070: ERROR/AndroidRuntime(1338): Uncaught handler: thread main exiting due to uncaught exception 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): java.lang.NullPointerException 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.google.android.maps.ItemizedOverlay.getItemsAtLocation(ItemizedOverlay.java: 617) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.google.android.maps.ItemizedOverlay.getItemAtLocation(ItemizedOverlay.java: 586) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.google.android.maps.ItemizedOverlay.handleMotionEvent(ItemizedOverlay.java: 498) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.google.android.maps.ItemizedOverlay.onTouchEvent(ItemizedOverlay.java: 572) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.google.android.maps.OverlayBundle.onTouchEvent(OverlayBundle.java: 63) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.google.android.maps.MapView.onTouchEvent(MapView.java:625) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.View.dispatchTouchEvent(View.java:3672) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:850) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:820) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1712) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java: 1202) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.app.Activity.dispatchTouchEvent(Activity.java:1987) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1696) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.view.ViewRoot.handleMessage(ViewRoot.java:1658) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.os.Handler.dispatchMessage(Handler.java:99) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.os.Looper.loop(Looper.java:123) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at android.app.ActivityThread.main(ActivityThread.java:4203) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at java.lang.reflect.Method.invokeNative(Native Method) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at java.lang.reflect.Method.invoke(Method.java:521) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549) 05-11 17:59:27.080: ERROR/AndroidRuntime(1338): at dalvik.system.NativeStart.main(Native Method) Nithin On May 11, 5:22 pm, Pratap <ajit....@gmail.com> wrote: > Can you post the logcat? > > On May 11, 3:59 pm, Nithin <nithin.war...@gmail.com> wrote: > > > > > Hi, > > > I am displaying google map and over that some Overlay items are there. > > In onTap(), I am displaying dialog. Its showing map and the > > overlayItem on top of the map. But if I click anywhere in Map, its > > showing NullPointer exception. Any Idea why this occurs > > > Nithin > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en