Skip to content

Commit a100a8a

Browse files
TobiPeterGvng
authored andcommitted
Check for null before animation
Signed-off-by: TobiPeterG <[email protected]>
1 parent 7e41a4c commit a100a8a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/app/src/main/java/app/organicmaps/widget/placepage/PlacePageController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ private void setPeekHeight()
283283
*/
284284
private void animatePeekHeight(int peekHeight)
285285
{
286+
if (mCurrentWindowInsets == null) {
287+
return;
288+
}
286289
final int bottomInsets = mCurrentWindowInsets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom;
287290
// Make sure to start from the current height of the place page
288291
final int parentHeight = ((View) mPlacePage.getParent()).getHeight();

0 commit comments

Comments
 (0)