diff --git a/htroot/ViewImage.java b/htroot/ViewImage.java index 08d0dd341..461f6787e 100644 --- a/htroot/ViewImage.java +++ b/htroot/ViewImage.java @@ -107,8 +107,13 @@ public class ViewImage { } if ((url == null) && (urlLicense.length() > 0)) { - urlString = URLLicense.releaseLicense(urlLicense); - url = new DigestURL(urlString); + urlString = URLLicense.releaseLicense(urlLicense); + if (urlString != null) { + url = new DigestURL(urlString); + } else { // license is gone (e.g. released/remove in prev calls) + ConcurrentLog.fine("ViewImage", "image urlLicense not found key=" + urlLicense); + return null; //TODO: maybe favicon accessed again, check iconcache + } } // get the image as stream