XFire
  1. XFire
  2. XFIRE-1148

Value of the key is an empty string rather than the null value

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2.6
    • Fix Version/s: None
    • Component/s: Aegis Module
    • Labels:
      None
    • Environment:
      PC
    • Number of attachments :
      0

      Description

      When I get my hashmap, the value of a key is not null but an empty string. However, it is initialized with null values.

      Here is my mapping file in order to map my HashMap :

      <mappings>
      <mapping>
      <property name="myAttribute1" keyType="...MyEnum1" componentType="java.lang.String" />
      </mapping>
      </mappings>

      For information, the key of my hashmap is an Enum.

      Why do I have empty strings when I receive my request?

      Thanks in advance.

        Activity

        Hide
        Alexandre Vandenabeele added a comment -

        The map defined like this : "String / String" allows to have a null value in a value of the map.

        But if i add this mapping file (aegis.xml):
        <mappings>
        <mapping>
        <property name="myAttribute1" keyType="java.lang.String" componentType="java.lang.String" />
        </mapping>
        </mappings>

        So i have the same problem , the String is empty rather than null.

        Show
        Alexandre Vandenabeele added a comment - The map defined like this : "String / String" allows to have a null value in a value of the map. But if i add this mapping file (aegis.xml): <mappings> <mapping> <property name="myAttribute1" keyType="java.lang.String" componentType="java.lang.String" /> </mapping> </mappings> So i have the same problem , the String is empty rather than null.

          People

          • Assignee:
            Dan Diephouse
            Reporter:
            Alexandre Vandenabeele
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: