avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Created: (AVALON-3) ConfigurationUtil.toConfiguration adds null string in front of the each Text node
Date Fri, 07 May 2004 20:36:56 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AVALON-3

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AVALON-3
    Summary: ConfigurationUtil.toConfiguration adds null string in front of the each Text
node
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Avalon Framework
 Components: 
             Implementation

   Assignee: 
   Reporter: Ivan Latysh

    Created: Fri, 7 May 2004 1:36 PM
    Updated: Fri, 7 May 2004 1:36 PM
Environment: Any environment

Description:
This what cause the problem
ConfigurationUtil class, line 108
 String content = null;
where should be
 String content = "";

because after we are doing 
 content += data.getData();
that cause to add null string in front of the data readed from the node.

A simple test
 String str = null;
 str+="some text";

will give "nullsome text"



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message