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

NullPointerException #551

Open
ylk2534246654 opened this issue May 26, 2022 · 4 comments
Open

NullPointerException #551

ylk2534246654 opened this issue May 26, 2022 · 4 comments

Comments

@ylk2534246654
Copy link

java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.WindowInsetsController.setSystemBarsAppearance(int, int)' on a null object reference
at com.gyf.immersionbar.ImmersionBar.setBar(ImmersionBar.java:420)
at com.gyf.immersionbar.ImmersionBar.setStatusBarDarkFontAboveR(ImmersionBar.java:877)
at com.gyf.immersionbar.ImmersionBar.setBarDarkFontAboveR(ImmersionBar.java:441)
at com.gyf.immersionbar.ImmersionBar.init(ImmersionBar.java:326)

@BarretWu
Copy link

我这里也发生了

@wangchenyan
Copy link

插眼

1 similar comment
@972223177
Copy link

插眼

@Vicent9920
Copy link

Vicent9920 commented Jun 30, 2023

SM-S918N
型号:SM-S918N
Android
版本:13
implementation 'com.geyifeng.immersionbar:immersionbar:3.2.2'

// Activity#onCreate()
// 调用函数ImmersionBar.with(this).reset().fitsSystemWindows(true).navigationBarColor(R.color.color_fcfcfc).statusBarDarkFont(true).init();
//空指针:
Attempt to invoke virtual method 'android.view.WindowInsetsController android.view.ViewGroup.getWindowInsetsController()' on a null object reference

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