提交 bdb4618a authored 作者: Thomas Mueller's avatar Thomas Mueller

H2 Console: the built-in web server did not work properly if an unknown file was requested.

上级 254251ee
......@@ -462,9 +462,11 @@ public class Utils {
byte[] data = RESOURCES.get(name);
if (data == null) {
data = loadResource(name);
RESOURCES.put(name, data);
if (data != null) {
RESOURCES.put(name, data);
}
}
return data == null ? EMPTY_BYTES : data;
return data;
}
private static byte[] loadResource(String name) throws IOException {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论