O'Reilly logo
  • 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.

From

Cover of Spring in Action, Third Edition

Note

Not immune to NullPointerException