Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Balloon #122

Open
jumper0k opened this issue Apr 17, 2013 · 5 comments
Open

Balloon #122

jumper0k opened this issue Apr 17, 2013 · 5 comments

Comments

@jumper0k
Copy link

Если создать свой layout.xml для унаследованного класа от BalloonItem, основным лэйаутом в layout.xml сделать RelativeLayout, то приложение крэшится при клике на OverlayItem.

    java.lang.NullPointerException
    at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:493)
    at android.view.View.measure(View.java:15513)
    at ru.yandex.yandexmapkit.overlay.balloon.BalloonItem.a(Unknown Source)
    at bs.run(Unknown Source)
    at android.os.Handler.handleCallback(Handler.java:725)
    at android.os.Handler.dispatchMessage(Handler.java:92)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:5191)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
    at dalvik.system.NativeStart.main(Native Method)
@mksaint13
Copy link
Member

Спасибо. будет время попробуем исправить. Но вам никто не мешает обернуть его в LinearLayout

@jumper0k
Copy link
Author

Пока что так и делаем :)

@hram
Copy link

hram commented Apr 19, 2013

Студенты что ли пишут библиотеку?

@idunskiy
Copy link

idunskiy commented Aug 4, 2014

Тоже самое, только у меня при использовании LinearLayout в качестве custom layout :

FATAL EXCEPTION: main
java.lang.NullPointerException
at ru.yandex.yandexmapkit.overlay.balloon.BalloonItem.a(Unknown Source)
at bs.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
at dalvik.system.NativeStart.main(Native Method)

@Radaykina
Copy link

Кто-то смог решить эту проблему?
E/ACRA: com.googol.znaetmama.gygolznaetmama_android fatal error : null
java.lang.NullPointerException
at ru.yandex.yandexmapkit.overlay.balloon.BalloonOverlay.a(Unknown Source)
at bt.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5039)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants