Skip to content

Commit b02e46a

Browse files
committed
Fix NPE for info box
Signed-off-by: alperozturk <alper_ozturk@proton.me>
1 parent 39728f5 commit b02e46a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/main/java/com/owncloud/android/ui/activity/ToolbarActivity.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,10 @@ public boolean isRoot(OCFile file) {
215215
* @param text the text to be displayed
216216
*/
217217
protected final void showInfoBox(@StringRes int text) {
218-
mInfoBox.setVisibility(View.VISIBLE);
219-
mInfoBoxMessage.setText(text);
218+
if (mInfoBox != null && mInfoBoxMessage != null) {
219+
mInfoBox.setVisibility(View.VISIBLE);
220+
mInfoBoxMessage.setText(text);
221+
}
220222
}
221223

222224
/**

0 commit comments

Comments
 (0)