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=38319>.
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=38319

           Summary: NullPointerException when no absolute path was specified
           Product: Commons
           Version: 1.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Configuration
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


When I will use the feature that PropertisConfiguration will search the given 
File in the Classpath etc.

like:
Configuration config = new PropertiesConfiguration("usergui.properties");

I allways get a NullPointerException when the given filename does't exist.

here the output:

java.lang.NullPointerException
        at org.apache.commons.configuration.ConfigurationUtils.getBasePath
(ConfigurationUtils.java:337)
        at org.apache.commons.configuration.PropertiesConfiguration.<init>
(PropertiesConfiguration.java:176)

the Exception only comes when the file ist not in the search path, otherwhise 
everything works well.

sorry for my bad english

yours sincerely
Matthias

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to