Skip to content

Commit

Permalink
Fix NPE for info box
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Sep 3, 2024
1 parent 39728f5 commit b02e46a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ public boolean isRoot(OCFile file) {
* @param text the text to be displayed
*/
protected final void showInfoBox(@StringRes int text) {
mInfoBox.setVisibility(View.VISIBLE);
mInfoBoxMessage.setText(text);
if (mInfoBox != null && mInfoBoxMessage != null) {
mInfoBox.setVisibility(View.VISIBLE);
mInfoBoxMessage.setText(text);
}
}

/**
Expand Down

0 comments on commit b02e46a

Please sign in to comment.