[Mono-bugs] [Bug 543206] New: When getting a string regkey which exists but contains no actual value mono on linux returns null instead of Empty String

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 30 12:39:12 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=543206


           Summary: When getting a string regkey which exists but contains
                    no actual value mono on linux returns null instead of
                    Empty String
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=320502)
 --> (http://bugzilla.novell.com/attachment.cgi?id=320502)
Test case that tests reading a string registry key that exists but is empty.

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13)
Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13

This is a mono on Linux only problem.

Reading a registry key like the following:

<values>
<value name="Test"
type="string"/>
</values>



MyRegKey.GetValue("Test", String.Empty); // returns null on Linux EmptyString
on Windows (in mono and .NET)

I think 'empty' string reg keys should return String.Empty instead of null.

Attached test case showing problem,


Reproducible: Always

Steps to Reproduce:
1. Compile and run attached test program.
2.
3.
Actual Results:  
False
True

Expected Results:  
True
False

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list