Added a check on the session, as suggested by Manuel Dominguez Sarmiento (FTPSERVER...
authorEmmanuel Lécharny <elecharny@symas.com>
Wed, 2 Nov 2016 17:26:55 +0000 (18:26 +0100)
committerEmmanuel Lécharny <elecharny@symas.com>
Wed, 2 Nov 2016 17:26:55 +0000 (18:26 +0100)
core/src/main/java/org/apache/ftpserver/impl/IODataConnectionFactory.java

index 90a321e..19230af 100644 (file)
@@ -77,7 +77,7 @@ public class IODataConnectionFactory implements ServerDataConnectionFactory {
             final FtpIoSession session) {
         this.session = session;
         this.serverContext = serverContext;
-        if (session.getListener().getDataConnectionConfiguration()
+        if ((session != null) && session.getListener().getDataConnectionConfiguration()
                 .isImplicitSsl()) {
             secure = true;
         }