The line of code crashes my app :-
Objects.requireNonNull(getSupportActionBar()).hide();
I don't know why, can anyone help me...?
CodePudding user response:
getSupportActionBar()
returns null. And since you require it to be non-null, it crashes.
The line of code crashes my app :-
Objects.requireNonNull(getSupportActionBar()).hide();
I don't know why, can anyone help me...?
CodePudding user response:
getSupportActionBar()
returns null. And since you require it to be non-null, it crashes.