gnodet opened a new pull request, #13020:
URL: https://github.com/apache/maven/pull/13020

   Backport of #12996 to maven-4.0.x.
   
   ## Summary
   
   - Adds a `checkContainer()` null guard to the deprecated 
`MavenSession.lookup()`, `lookupList()`, and `lookupMap()` methods
   - When `PlexusContainer` is not injected (Maven 4 default), these methods 
now throw a descriptive `UnsupportedOperationException` with a migration 
message instead of a confusing `NullPointerException`
   - Adds `MavenSessionTest` with 7 test cases covering both the null-container 
(Maven 4) and populated-container (Maven 3) paths


-- 
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]

Reply via email to