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

RecyclerView下使用崩溃 #2

Open
wheatdamon opened this issue Sep 21, 2017 · 1 comment
Open

RecyclerView下使用崩溃 #2

wheatdamon opened this issue Sep 21, 2017 · 1 comment

Comments

@wheatdamon
Copy link

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.getLocationOnScreen(int[])' on a null object reference
at com.escher.magicworld.utils.EasyTransition.runExitAnimation(EasyTransition.java:193)
at com.escher.magicworld.utils.EasyTransition.exit(EasyTransition.java:156)
at com.escher.magicworld.utils.EasyTransition.exit(EasyTransition.java:180)
at com.escher.magicworld.activity.DiscoveryDetailActivity.onBackPressed(DiscoveryDetailActivity.java:32)

@huzenan
Copy link
Owner

huzenan commented Sep 22, 2017

这是退出时找不到对应于上一个Activity中的View,才导致获取位置时报了空指针,检查一下两个View的id是不是一致的呢?

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

2 participants