prevent NPE

This commit is contained in:
Athou
2013-06-11 08:08:27 +02:00
parent 17a1783789
commit 5d5b223ffb

View File

@@ -68,6 +68,10 @@ public class FaviconFetcher {
}
boolean isValidIconResponse(byte[] content, String contentType) {
if (content == null) {
return false;
}
long length = content.length;
if (!contentType.isEmpty()) {