prevent exception on repeated ViewImage with same urlLicense

pull/32/head
reger 9 years ago
parent 9cfa847c94
commit 997f18f658

@ -108,7 +108,12 @@ public class ViewImage {
if ((url == null) && (urlLicense.length() > 0)) {
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

Loading…
Cancel
Save