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

打开相机失败,程序崩溃,提示如下,但跟fragmentmanager 没有任何关系 #2428

Closed
rebertBen opened this issue Jul 21, 2022 · 1 comment

Comments

@rebertBen
Copy link

Current use version?

当前使用的版本是多少?

java.lang.NullPointerException: FragmentManager cannot be null
at com.luck.picture.lib.basic.PictureSelectionCameraModel.forResult(PictureSelectionCameraModel.java:611)
at tai.tan.module_base.utils.PictureSelectorUtil.takePhoto(PictureSelectorUtil.java:38)
at tai.tan.modules.module_main.view.scancode.ScanRealismActivity.onClick(ScanRealismActivity.java:52)
at android.view.View.performClick(View.java:6291)
at android.view.View$PerformClick.run(View.java:24931)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:166)
at android.app.ActivityThread.main(ActivityThread.java:7425)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)


Will this problem occur in demo?

Demo能否复现这问题?


Describe the problem or provide an error log?

描述问题或提供错误log?


@acmelacross
Copy link

我也遇到了,我看了看源码,把activity改成集成fragementactivity 或者 appcompatactivity就行了,这里作者疏忽了

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

3 participants