VorbisJava
VorbisJava copied to clipboard
NullPointerException at OggAudioParser.java because of null "comments" param
I am trying to get metadata of a flac file and I am getting the following error:
Caused by: java.lang.NullPointerException at org.gagravarr.tika.OggAudioParser.extractComments(OggAudioParser.java:62) at org.gagravarr.tika.FlacParser.parse(FlacParser.java:78) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:280)
there should be a null checker in extraComments
method in OggAudioParser
. This specific case is caused because my flac file does not have any tags as line 78 of FlacParser
class of vorbis-java-tika:0.8
library expects:
OggAudioParser.extractComments(metadata, xhtml, flac.getTags());
so, flac.getTags()
is null