Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX-669][android] fix slider crash when adapter is null #1816

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

win80540
Copy link
Contributor

fix slider crash when adapter is null

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.taobao.weex.ui.view.WXCirclePageAdapter.setLayoutDirectionRTL(boolean)' on a null object reference
at com.taobao.weex.ui.component.WXSlider.setLayout(WXSlider.java:217)
at com.taobao.weex.ui.action.GraphicActionLayout.executeAction(GraphicActionLayout.java:44)
at com.taobao.weex.ui.action.BasicGraphicAction.run(BasicGraphicAction.java:68)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6195)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

@weex-bot
Copy link

weex-bot commented Nov 26, 2018

Fails
🚫 Failed to run assembleDebug task for android.
Messages
📖 android build verification finished.

Generated by 🚫 dangerJS

@YorkShen YorkShen merged commit 349ee5f into apache:master Nov 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants