Skip to content

Commit

Permalink
Check if content view is null
Browse files Browse the repository at this point in the history
Fixes #159
  • Loading branch information
janicduplessis committed Mar 7, 2021
1 parent dfffa92 commit 81d40a8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public Map<String, Object> getExportedCustomDirectEventTypeConstants() {
}

View contentView = decorView.findViewById(android.R.id.content);
if (contentView == null) {
return null;
}
EdgeInsets insets = SafeAreaUtils.getSafeAreaInsets(decorView);
Rect frame = SafeAreaUtils.getFrame(decorView, contentView);
if (insets == null || frame == null) {
Expand Down

0 comments on commit 81d40a8

Please sign in to comment.