commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35807] - [configuration] NullPointerException thrown by AbstractFileConfiguration.getFile()
Date Thu, 21 Jul 2005 12:58:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35807>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35807





------- Additional Comments From oliver.heger@t-online.de  2005-07-21 14:58 -------
Not sure whether getFile() should return null after a file was loaded. What
about the following:

FileConfiguration conf = new PropertiesConfiguration();
conf.load("myfile.properties");
...
conf.save();

ATM this code will work and store the data at the same place where it was loaded
from (because the source URL is now stored). This is okay for me, it's what I
expect. So there is an association between the configuration and the file it was
loaded from. Why not return this file in the getFile() method and its name in
the getFileName() method?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message