Update years in copyright line
[Sone.git] / src / main / java / net / pterodactylus / sone / template / CollectionAccessor.java
index 12b4bc2..5449fa5 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - CollectionAccessor.java - Copyright © 2010–2013 David Roden
+ * Sone - CollectionAccessor.java - Copyright © 2010–2015 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
@@ -45,9 +45,6 @@ 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>();