projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Try to prevent new elements from being stuck in the notifications.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
template
/
ImageLinkFilter.java
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
(file)
--- 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");