• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

grobidOrg / grobid / 27984196908

22 Jun 2026 09:09PM UTC coverage: 38.586% (-0.002%) from 38.588%
27984196908

push

github

web-flow
fix: guard against out-of-range page index in citation annotation #149 (#1459)

CitationsVisualizer.annotatePage() called getPages().get(pageNum) without
bounds checking. When PDFBox fails to extract the page tree (malformed PDF
or empty page catalog), this threw IndexOutOfBoundsException which surfaced
as an HTTP 500 from the annotation endpoint. Skip the annotation gracefully
and log a warning instead.

8637 of 24854 branches covered (34.75%)

Branch coverage included in aggregate %.

18387 of 45182 relevant lines covered (40.7%)

4.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

22.96
/org/grobid/core/visualization/CitationsVisualizer.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc