Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException at com.applovin.sdk.AppLovinAdSize.getLabel() from loadNextAdForZoneId #590

Closed
Str4tos opened this issue Nov 27, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Str4tos
Copy link

Str4tos commented Nov 27, 2023

MAX SDK Version

12.0.0

Device/Platform Info

Google Pixel 7, Android 14

Current Behavior

Hello.
I can't load the AppLovin Banner Ads with Zone ID:

sdk.adService.loadNextAdForZoneId(zoneId, this)

The AppLovinAdLoadListener is not called, but the error appears in the logs:

[TaskProcessAdResponse] Task failed execution
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.applovin.sdk.AppLovinAdSize.getLabel()' on a null object reference
	at com.applovin.impl.sdk.AppLovinAdServiceImpl$b.failedToReceiveAdV2(SourceFile:27)
	at com.applovin.impl.sdk.e.r.failedToReceiveAdV2(SourceFile:12)
	at com.applovin.impl.sdk.e.r.run(SourceFile:85)
	at com.applovin.impl.sdk.e.q.b(SourceFile:4)
	at com.applovin.impl.sdk.e.k.q(SourceFile:29)
	at com.applovin.impl.sdk.e.k$1.a(SourceFile:4)
	at com.applovin.impl.sdk.e.k$1.d(SourceFile:3)
	at com.applovin.impl.sdk.e.w$1.d(SourceFile:13)
	at com.applovin.impl.sdk.network.b$b.a(SourceFile:246)
	at com.applovin.impl.sdk.network.b$b.accept(SourceFile:3)
	at com.applovin.impl.sdk.network.e$a.a(SourceFile:5)
	at com.applovin.impl.sdk.network.e$a.b(SourceFile:1)
	at com.applovin.impl.sdk.network.j.run(R8$$SyntheticClass:5)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:487)
	at java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

The exception line from the AppLovin SDK decompiled code:

public class AppLovinAdServiceImpl {
...
private class b implements com.applovin.impl.sdk.ad.i {
...
public void failedToReceiveAdV2(AppLovinError var1) {
            Set var2 = Collections.emptySet();
            synchronized(this.azy.azz) {
                if (AppLovinAdServiceImpl.this.sdk.b(com.applovin.impl.sdk.c.b.aKG)
                    .contains(this.azx.getSize().getLabel()) && this.azy.alT < this.alR)
...

Expected Behavior

A call to AppLovinAdLoadListener is expected with a load response.

How to Reproduce

Try loading a few AppLovin ad banners by running the following line of code:

sdk.adService.loadNextAdForZoneId(zoneId, this)

Additional Info

No response

@Str4tos Str4tos added the bug Something isn't working label Nov 27, 2023
@alvarshahanji alvarshahanji self-assigned this Nov 28, 2023
@alvarshahanji
Copy link
Contributor

@Str4tos Thanks for reporting the issue. It is fixed in android SDK 12.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants