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

ExpediaGroup / bull / #1399 / 1
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: develop
DEFAULT BRANCH: master
Ran 31 Mar 2026 08:16AM UTC
Files 60
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Mar 2026 08:14AM UTC coverage: 100.0%. Remained the same
#1399.1

push

fborriello
fix: prevent NPE when field transformer is applied to collection elements with flat field name mapping

When a CollectionPopulator transforms list elements (e.g. List<PersonSvc> -> List<Person>),
it calls transformer.transform(elem, targetClass) without a breadcrumb. In resolveEffectiveSource,
evalBreadcrumb("fieldName", null) returns just "fieldName", which could match a simple flat
field mapping (e.g. "name" -> "fullName"). This caused the lookup to incorrectly redirect to
the root source object instead of the current element, and getSourceFieldValue silently returned
null (swallowing the MissingFieldException because a transformer was defined), ultimately
passing null into the user's transformer function and triggering a NullPointerException.

Fix: guard the breadcrumb-based mapping lookup with isNotEmpty(breadcrumb) so root-source
redirection only occurs when there is an actual breadcrumb prefix in the path.

1225 of 1225 relevant lines covered (100.0%)

1.95 hits per line

Source Files on job #1399.1
  • Tree
  • List 60
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1399
  • 697b92cd on github
  • Prev Job for on fix/collection-element-field-transformer-null-regression (##1397.1)
  • Next Job for on fix/collection-element-field-transformer-null-regression (##1400.1)
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