Merge branch 'stable-2.12'
* stable-2.12: Update URLs for bouncycastle Update URLs for bouncycastle ResourceServlet#getResource(): Prevent NPE in Guava cache Change-Id: I2e2bcf5dd8e62eec4263a81b621f9642c0f04795
This commit is contained in:
@@ -205,6 +205,10 @@ public abstract class ResourceServlet extends HttpServlet {
|
|||||||
Resource getResource(String name) {
|
Resource getResource(String name) {
|
||||||
try {
|
try {
|
||||||
Path p = getResourcePath(name);
|
Path p = getResourcePath(name);
|
||||||
|
if (p == null) {
|
||||||
|
log.warn(String.format("Path doesn't exist %s", name));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
return cache.get(p, newLoader(p));
|
return cache.get(p, newLoader(p));
|
||||||
} catch (ExecutionException | IOException e) {
|
} catch (ExecutionException | IOException e) {
|
||||||
log.warn(String.format("Cannot load static resource %s", name), e);
|
log.warn(String.format("Cannot load static resource %s", name), e);
|
||||||
|
Reference in New Issue
Block a user