OldTruckDriver opened a new pull request, #685: URL: https://github.com/apache/commons-collections/pull/685
[COLLECTIONS-890] Fix TransformIterator null transformer handling TransformIterator documents null transformers as pass-through/no-op, but transform(...) unconditionally called transformer.apply(...). As a result, next() threw NullPointerException when the iterator was constructed with a null transformer or when setTransformer(null) was used. This change makes TransformIterator return the original element when the transformer is null, matching the documented contract. Tests cover both constructor-supplied null transformers and setTransformer(null). Tests run: - mvn -q -Dtest=org.apache.commons.collections4.iterators.TransformIteratorTest test - mvn -q '-Dtest=org.apache.commons.collections4.iterators.*Test' test - mvn -q -- 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]
