Skip to content

Commit efa851c

Browse files
committed
getAcceptedIssuers() is not supposed to return null
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/net/branches/NET_2_0@962837 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0f8be87 commit efa851c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
*/
3232
public class FTPSTrustManager implements X509TrustManager
3333
{
34+
private static final X509Certificate[] EMPTY_X509CERTIFICATE_ARRAY = new X509Certificate[]{};
35+
3436
/**
3537
* No-op
3638
*/
@@ -49,6 +51,6 @@ public void checkServerTrusted(X509Certificate[] certificates, String authType)
4951

5052
public X509Certificate[] getAcceptedIssuers()
5153
{
52-
return null;
54+
return EMPTY_X509CERTIFICATE_ARRAY;
5355
}
5456
}

0 commit comments

Comments
 (0)