Skip to content

Autoboxing NullPointerException #956

@sampov2

Description

@sampov2

The MediaHttpDownloader in simple mode has a potential nullpointer issue because of autoboxing. response.getHeaders().getContentLength() returns a Long, which can be null in some cases. The MediaHttpDownloader.download() method stores this Long in a long field without checking for nulls.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions