/*
- * 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
*/
@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>();