소스 검색

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…
취소
저장