bumptech / bumptech/glide

NPE at ProcessorUtil.findInstanceMethodsReturning line 498

Open
#3,905 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

**Glide Version**: 4.10.0

**Integration libraries**: okhttp:4.2.0

**Device/Android Version**: Emulator Pixel 2 Android 27

**Issue details / Repro steps / Use case background**:

Upgrading from version 4.8.0 to 4.10.0 my project build fails with the following error:

> org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:compileFreeDebugJavaWithJavac'.
> ...
> Caused by: java.lang.NullPointerException
> at com.bumptech.glide.annotation.compiler.ProcessorUtil.findInstanceMethodsReturning(ProcessorUtil.java:498)
> at com.bumptech.glide.annotation.compiler.RequestOptionsOverrideGenerator.generateInstanceMethodOverridesForRequestOptions(RequestOptionsOverrideGenerator.java:48)
> ...

Downgrading back to 4.8.0 fixes the problem. The problem is also present with 4.9.0.

Android X support and jetifier is enabled:

```
android.useAndroidX=true
android.enableJetifier=true
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.