From 513be9409e5d6eefa07e9d502e1e70bac4fce861 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 9 Dec 2011 07:40:24 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20try=20to=20process=20non-existin?= =?utf8?q?g=20images.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/template/ImageLinkFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/template/ImageLinkFilter.java b/src/main/java/net/pterodactylus/sone/template/ImageLinkFilter.java index 1684be7..a79cb0b 100644 --- a/src/main/java/net/pterodactylus/sone/template/ImageLinkFilter.java +++ b/src/main/java/net/pterodactylus/sone/template/ImageLinkFilter.java @@ -71,7 +71,8 @@ public class ImageLinkFilter implements Filter { image = core.getImage((String) data, false); } else if (data instanceof Image) { image = (Image) data; - } else { + } + if (image == null) { return null; } String imageClass = parameters.get("class"); -- 2.7.4