Преглед изворни кода

Merge "Fix NPE in HttpAuthMethod"

tags/v4.2.0.201601211800-r
Christian Halstrick пре 8 година
родитељ
комит
6dfad98d72
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java

+ 2
- 1
org.eclipse.jgit/src/org/eclipse/jgit/transport/HttpAuthMethod.java Прегледај датотеку

@@ -219,7 +219,8 @@ abstract class HttpAuthMethod {
if (credentialsProvider.supports(u, p)
&& credentialsProvider.get(uri, u, p)) {
username = u.getValue();
password = new String(p.getValue());
char[] v = p.getValue();
password = (v == null) ? null : new String(p.getValue());
p.clear();
} else
return false;

Loading…
Откажи
Сачувај