Skip to content

Commit

Permalink
Handle exception on adding activity header
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Nov 18, 2022
1 parent a7d77c6 commit fa0fecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ && requireArguments().containsKey(ADS_ARGS_VIEW_PAGER_PAGE)) {
public void onAddActivityHeader(@Nullable View view) {
super.onAddActivityHeader(view);

if (view == null) {
if (getContext() == null || view == null) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ && requireArguments().containsKey(ADS_ARGS_VIEW_PAGER_PAGE)) {
public void onAddActivityHeader(@Nullable View view) {
super.onAddActivityHeader(view);

if (view == null) {
if (getContext() == null || view == null) {
return;
}

Expand Down

0 comments on commit fa0fecb

Please sign in to comment.