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

grobidOrg / grobid / 27977359529

22 Jun 2026 07:01PM UTC coverage: 38.583% (-0.005%) from 38.588%
27977359529

Pull #1459

github

lfoppiano
fix: guard against out-of-range page index in citation annotation #149

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.
Pull Request #1459: Fix #149

8636 of 24854 branches covered (34.75%)

Branch coverage included in aggregate %.

18386 of 45182 relevant lines covered (40.69%)

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