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

Application 偶现空指针异常 #36

Closed
ruanchaohouzi opened this issue Mar 19, 2019 · 1 comment
Closed

Application 偶现空指针异常 #36

ruanchaohouzi opened this issue Mar 19, 2019 · 1 comment

Comments

@ruanchaohouzi
Copy link

image
这样集成应该不对把,Application中init获取MainAppActivity.sRef.get(); 这时候MainAppActivity还没有启动,可能存在空指针的。
看下异常信息:
image

@Yacumima
Copy link
Collaborator

image
这样集成应该不对把,Application中init获取MainAppActivity.sRef.get(); 这时候MainAppActivity还没有启动,可能存在空指针的。
看下异常信息:
image

这样保证FlutterView的使用在MainActivity create之后

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