Skip to content

Commit

Permalink
Merge pull request #8 from AppLovin/refactor/null_check_positionAdView()
Browse files Browse the repository at this point in the history
refactor/null_check_positionAdView()
  • Loading branch information
applovinAsh authored Sep 22, 2021
2 parents ad424da + 972538e commit 2596d74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/src/android/AppLovinMAX.java
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,11 @@ private void positionAdView(String adUnitId, MaxAdFormat adFormat)

final String adViewPosition = mAdViewPositions.get( adUnitId );
final RelativeLayout relativeLayout = (RelativeLayout) adView.getParent();
if ( relativeLayout == null )
{
e( adFormat.getLabel() + "'s parent does not exist" );
return;
}

// Size the ad
final AdViewSize adViewSize = getAdViewSize( adFormat );
Expand Down

0 comments on commit 2596d74

Please sign in to comment.