forked from Archives/Athou_commafeed
prevent NPE
This commit is contained in:
@@ -68,6 +68,10 @@ public class FaviconFetcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean isValidIconResponse(byte[] content, String contentType) {
|
boolean isValidIconResponse(byte[] content, String contentType) {
|
||||||
|
if (content == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
long length = content.length;
|
long length = content.length;
|
||||||
|
|
||||||
if (!contentType.isEmpty()) {
|
if (!contentType.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user