You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Niklas Gustavsson (JIRA)" <ji...@apache.org> on 2008/08/07 15:33:44 UTC
[jira] Closed: (FTPSERVER-145) NullPointerException in
PropertiesUserManager
[ https://issues.apache.org/jira/browse/FTPSERVER-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Niklas Gustavsson closed FTPSERVER-145.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.0-M3
Assignee: Niklas Gustavsson
Fixed.
svn commit "/media/big/home/svn/apache/ftpserver-trunk/core/src/main/java/org/apache/ftpserver/usermanager/PropertiesUserManager.java" -m "Fix potential NPE in PropertiesUserManager (FTPSERVER-145)" --username "ngn"
M /media/big/home/svn/apache/ftpserver-trunk/core/src/main/java/org/apache/ftpserver/usermanager/PropertiesUserManager.java
Transmitting file data: /media/big/home/svn/apache/ftpserver-trunk/core/src/main/java/org/apache/ftpserver/usermanager/PropertiesUserManager.java
Committed revision 683615
> NullPointerException in PropertiesUserManager
> ---------------------------------------------
>
> Key: FTPSERVER-145
> URL: https://issues.apache.org/jira/browse/FTPSERVER-145
> Project: FtpServer
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.0-M2
> Reporter: Olivier Lourdais
> Assignee: Niklas Gustavsson
> Priority: Trivial
> Fix For: 1.0-M3
>
>
> In the configure() method, userDataFile.getParentFile() can return null (eg. if file name is "toto.properties" rather than "./toto.properties"), which is not checked and can lead to a NullPointerException. A possible fix is to call userDataFile.getAbsoluteFile().getParentFile().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.