Don’t try to process non-existing images.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 9 Dec 2011 06:40:24 +0000 (07:40 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 9 Dec 2011 06:40:24 +0000 (07:40 +0100)
src/main/java/net/pterodactylus/sone/template/ImageLinkFilter.java

index 1684be7..a79cb0b 100644 (file)
@@ -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");