Some malformed comments trigger NullPointerException
AL1047088 opened this issue · 1 comments
AL1047088 commented
The CommentUtil.getComments returns the list of all comments found in the document.
Sometimes, some comments range start/end detection fails leaving the corresponding fields null in the CommentWrapper.
During the processComments phase, L205 the call to processor.setCurrentCommentWrapper checks for null fields and triggers a NullPointerException.
A simple skip of those comments and a log warning displaying the comment content would be sufficient.