-
Patch
-
Resolution: Fixed
-
Minor
-
None
-
Platform: All, OS: All
Very minor issue, but thought I'd report it..
Visit the enterCredential page and just click the OK button w/o filling out the
form.. I get a "server error" page, and webserver log shows
NullPointerException. 1.262
[JENKINS-2698] scm/SubversionSCM/enterCredential gets NullPointerException if form left blank
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 132771 ] | New: JNJira + In-Review [ 201654 ] |
Here is a patch to resolve this:
Index: main/core/src/main/java/hudson/scm/SubversionSCM.java
===================================================================
— main/core/src/main/java/hudson/scm/SubversionSCM.java (revision 13501)
+++ main/core/src/main/java/hudson/scm/SubversionSCM.java (working copy)
@@ -1128,7 +1128,7 @@
// SVNKit wants a key in a file
final File keyFile;
FileItem item=null;
+ if(idx <= 1) { keyFile = null; }
else {
item =
parser.getFileItem(kind.equals("publickey")?"privateKey":"certificate");