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

升级新版本后 部分手机出现X5WebView初始化时空指针异常 #108

Open
fangxiong opened this issue Dec 30, 2020 · 6 comments
Open

Comments

@fangxiong
Copy link

Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'void com.tencent.smtt.export.external.extension.interfaces.IX5WebSettingsExtension.setDayOrNight(boolean)' on a null object reference
at com.ycbjie.webviewlib.view.BaseWebView.setDayOrNight(Unknown Source:4)
at com.ycbjie.webviewlib.view.X5WebView.initWebViewSettings(Unknown Source:94)
at com.ycbjie.webviewlib.view.X5WebView.(Unknown Source:3)

@conscious01
Copy link

same problem here

@taojr95
Copy link

taojr95 commented Jan 7, 2021

如果X5未初始化完成前,调用了代码就会报这个错

@lianghuacheng
Copy link

X5 内核没加载成功就会这样。我也碰到了

@lianghuacheng
Copy link

这个问题该怎么弄呢?

@taojr95
Copy link

taojr95 commented Jul 5, 2021

这个问题该怎么弄呢?

image
把这行注释了就行

@chen867838902
Copy link

点进去,然后把setDayOrNight的实现改成super.setDayOrNight;

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

5 participants