FileGetMimeType() for .m4a throws java.lang.NullPointerException

Description

When calling FileGetMimeType("#createuuid()#.m4a"), I get a java.lang.NullPointerException. However, if I make the same call using an mp3 file (or jpg, gif, mp4, etc), it returns the correct mime type. In either of these cases, the file does not actually exist.

When I call FileGetMimeType("C:/mytestfile.m4a") and the file exists, and is really a text file, the function returns "text/plain" so the function appears to be reading the file - perhaps this happens for certain file extensions?

Does the source file need to exist for this call to work correctly?

Environment

Windows 7

Status

Assignee

Michael Offner

Reporter

JP

Labels

None

Sprint

None

Fix versions

Affects versions

5.2.8.50

Priority

New
Configure