Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c4122c9 authored by Justin Koh's avatar Justin Koh Committed by Android Git Automerger
Browse files

am ce8c1086: am eba8782a: Add NPE check to getSystemWindowInsets

* commit 'ce8c1086':
  Add NPE check to getSystemWindowInsets
parents 36b0cae9 ce8c1086
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -87,7 +87,12 @@ public final class WindowInsets {
        if (mTempRect == null) {
            mTempRect = new Rect();
        }
        if (mSystemWindowInsets != null) {
            mTempRect.set(mSystemWindowInsets);
        } else {
            // If there were no system window insets, this is just empty.
            mTempRect.setEmpty();
        }
        return mTempRect;
    }