From f8eb94ab3df4cfcda4d751e6027b642aa596bf76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sun, 2 Nov 2014 11:33:46 +0100 Subject: [PATCH] Remove irrelevant code, the object will never be null. --- src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java b/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java index 12b4bc2..b5a4255 100644 --- a/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java +++ b/src/main/java/net/pterodactylus/sone/template/CollectionAccessor.java @@ -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 sones = new ArrayList(); -- 2.7.4