提交 5df3f74b 编写于 作者: O Oleg Nenashev

[JENKINS-21631] - Don't fail with NPE if the PeepholePermalink cache contains...

[JENKINS-21631] - Don't fail with NPE if the PeepholePermalink cache contains the non-numeric value.

Actually, the change just prevents symptoms. There should be an error somewhere else.
Signed-off-by: NOleg Nenashev <o.v.nenashev@gmail.com>
上级 a1e0e4b7
......@@ -103,6 +103,9 @@ public abstract class PeepholePermalink extends Permalink implements Predicate<R
} catch (InterruptedException e) {
LOGGER.log(Level.WARNING, "Failed to read permalink cache:" + f, e);
// if we fail to read the cache, fall back to the re-computation
} catch (NumberFormatException e) {
LOGGER.log(Level.WARNING, "Failed to parse the build number in the permalink cache:" + f, e);
// if we fail to read the cache, fall back to the re-computation
} catch (IOException e) {
// this happens when the symlink doesn't exist
// (and it cannot be distinguished from the case when the actual I/O error happened
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册