这是indexloc提供的服务,不要输入任何密码
Skip to content

MediaPlayerAPI: calling it without any argument could crash the API app #154

@tomty89

Description

@tomty89

i.e. $PREFIX/libexec/termux-api MediaPlayer

The API would crash because:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.toUpperCase()' on a null object reference

Note that it would probably crash even if command is switched without toUpperCase.

Btw, what's the point of the toUpperCase anyway?

@dkramer95

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions