dschmidt commented on code in PR #2943:
URL: https://github.com/apache/tika/pull/2943#discussion_r3572713701
##########
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-audiovideo-module/src/main/java/org/apache/tika/parser/mp3/ID3v22Handler.java:
##########
@@ -113,6 +113,13 @@ private ID3Comment getComment(byte[] data, int offset, int
length) {
return ID3v2Frame.getComment(data, offset, length);
}
+ /** Skips null comments (malformed frames) that would trip up consumers. */
+ private void addComment(ID3Comment comment) {
+ if (comment != null) {
+ comments.add(comment);
+ }
+ }
Review Comment:
because I expect a function like addComment to do more - but in the end: I'm
obviously not emotional about that
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]