mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
[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: Oleg Nenashev <o.v.nenashev@gmail.com>
This commit is contained in:
1 parent
a1e0e4b70b
commit
5df3f74b4e
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user