Registry Mirror
Skip to content

Field OBX-5 in V21 is defined as ST and not defined as type Varies #45

Closed

Description

@0x4AMiller

Which is causing invalid cast exception on line # 184 in NHapi.Base.Model.Varies

in fixOBX5 method...
foreach (IType repetition in segment.GetField(5))
{
Varies v = (Varies) repetition; <--- Invalid cast exception
...
}

Activity

  1. added
    bug
    on Jan 29, 2021
  2. self-assigned this
    on Jan 29, 2021
  3. added this to the v3.0.0.0 milestone on Jan 29, 2021
  4. milkshakeuk commented on Jan 29, 2021

    @milkshakeuk
    Member

    @0x4AMiller Hi thanks for this, I also discovered this whilst writing unit tests for another issue #133 so will fix this in the same PR

  5. added a commit that references this issue on Jan 29, 2021
    56a897d
  6. added a commit that references this issue on Jan 30, 2021
    e544c06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions