Commit e92d48e
authored
[JENKINS-48738] Fix JDK configuration NPE (#203)
a15d15a
Confirmed with interactive testing that the null pointer exception is
resolved and that the configuration slicing plugin can change the value
of the JDK that is defined on a Freestyle job. I changed between jdk-8
and jdk-20.
The plugin cannot reset the definition of the JDK to the default because
that causes a null pointer exception in AbstractProject as reported by
the original bug report https://issues.jenkins.io/browse/JENKINS-48738
Avoid the null pointer exception by ignoring the attempt to reset the
JDK value to default.
Thanks to @Evildethow and @ahertier for implementation1 parent 1da0636 commit e92d48e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
0 commit comments