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

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

am eba8782a: Add NPE check to getSystemWindowInsets

* commit 'eba8782a':
  Add NPE check to getSystemWindowInsets
parents 2be4ddc4 eba8782a
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;
    }