Eric Honsey thinks this is interesting:

That’ll do the trick every time ... as long as the selectSong() method doesn’t return a null. If selectSong() were to return null, then you’d get a NullPointerException as the SpEL expression is being evaluated.

Share this highlight

Get Instant Access Now

Unlock the rest of Spring in Action, Third Edition
and 30,000 other books and videos

By clicking this box, you confirm that you have read and agree to the terms and conditions of our Membership Agreement, and you understand that when your trial period ends, you will be required to provide billing information if you wish to continue using the service.