Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-12860

.NET: NullReferenceException when serializing fields of the same type in different order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.8
    • 2.9, 2.8.1
    • platforms

    Description

      .NET NullReferenceException when serializing fields of the same type in different order

      Steps to reproduce:

      • Implement IBinarizable for a type having multiple fields and randomly select subset of the fields in the  IBinarizable.WriteBinary implementation
      • Serialize the type multiple times

      Actual result:

      Eventual NullReferenceException at some iteration of serialization:

      Object reference not set to an instance of an object.  at Apache.Ignite.Core.Impl.Binary.Structure.BinaryStructure.GetFieldId(String fieldName, Byte fieldType, Int32& pathIdx, Int32 actionIdx)   at Apache.Ignite.Core.Impl.Binary.Structure.BinaryStructureTracker.GetFieldId(String fieldName, Byte fieldTypeId)   at Apache.Ignite.Core.Impl.Binary.BinaryWriter.WriteFieldId(String fieldName, Byte fieldTypeId)   at Apache.Ignite.Core.Impl.Binary.BinaryWriter.WriteInt(String fieldName, Int32 val)   at 

      Attachments

        1. ignite-12860-vs-2.8.patch
          3 kB
          Alexey Kukushkin

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              kukushal Alexey Kukushkin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m