From: David ‘Bombe’ Roden Date: Sun, 2 Nov 2014 10:33:46 +0000 (+0100) Subject: Remove irrelevant code, the object will never be null. X-Git-Tag: 0.9-rc1^2~3^2~59 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f8eb94ab3df4cfcda4d751e6027b642aa596bf76;p=Sone.git Remove irrelevant code, the object will never be null. --- 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();