[android] fixed null pointer exception.

This commit is contained in:
Roman Romanov 2017-03-06 08:33:34 +04:00
parent 143a6e962b
commit 2e9d15359a
2 changed files with 4 additions and 1 deletions

View file

@ -563,7 +563,9 @@ class BottomPlacePageAnimationController extends BasePlacePageAnimationControlle
@Override
protected void onContentSizeChanged()
{
onStateChanged(getState(), getState(), mPlacePage.getMapObject().getMapObjectType());
MapObject object = mPlacePage.getMapObject();
if (object != null)
onStateChanged(getState(), getState(), object.getMapObjectType());
}
private class UpdateListener implements ValueAnimator.AnimatorUpdateListener

View file

@ -866,6 +866,7 @@ public class PlacePageView extends RelativeLayout
mWvBookmarkNote.loadUrl("about:blank");
}
@Nullable
public MapObject getMapObject()
{
return mMapObject;