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

null pointer exception #7

Open
raj123456789123456789 opened this issue Jun 7, 2018 · 1 comment
Open

null pointer exception #7

raj123456789123456789 opened this issue Jun 7, 2018 · 1 comment

Comments

@raj123456789123456789
Copy link

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

@siyehua
Copy link

siyehua commented Aug 6, 2018

看源码,这个退出的时候的 Activity 是 B,此时用 B 去查找 A 的 View,自然会闪退。
所以这个库要求两个 Activity 使用同样的 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