Change all copyright headers to include 2012.
[Sone.git] / src / main / java / net / pterodactylus / sone / template / ImageLinkFilter.java
index 1684be7..50ce8fd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Sone - ImageLinkFilter.java - Copyright © 2011 David Roden
+ * Sone - ImageLinkFilter.java - Copyright © 2011–2012 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
@@ -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");