Build failing due to NPE in FileUtils
zbx1425 opened this issue Β· comments
Caused by: java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "type" is null
at io.github.pacifistmc.forgix.utils.FileUtils.isMagicCharacter(FileUtils.java:311)
Turns out somehow Files.probeContentType
can return null
...
Have to say, I can confirm that behavior. I ran across it in a discord bot of mine before.
@Ran-Mewo I'll submit the fix I did in modfusioner (which seems to work well) tonight :)
@hypherionmc did you submit it yet?
Ah shoot no. Sorry, will do it first thing after work. Please just remind me