LogEvent.getContextMap() can return null if there is no map.

It seems that a default of a read-only empty Map
(java.util.Collections.EMPTY_MAP) would be safer since it would avoid any
NPEs from our own call sites and users' as well.

Thoughts?

Gary

-- 
E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to