/*
- * Sone - CollectionAccessor.java - Copyright © 2010–2012 David Roden
+ * Sone - CollectionAccessor.java - Copyright © 2010–2016 David Roden
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* <dt>Returns the nice names of all {@link Sone}s in the collection, sorted
* ascending by their nice names.</dt>
* </dl>
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class CollectionAccessor extends ReflectionAccessor {
*/
@Override
public Object get(TemplateContext templateContext, Object object, String member) {
- if (object == null) {
- return null;
- }
Collection<?> collection = (Collection<?>) object;
if (member.equals("soneNames")) {
List<Sone> sones = new ArrayList<Sone>();