Skip to content

Commit

Permalink
getFirstTag() method fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lumber1000 committed Aug 15, 2024
1 parent 0c18b2f commit bbcd8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/exactpro/th2/codec/fixng/FixNgCodec.kt
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class FixNgCodec(dictionary: IDictionaryStructure, settings: FixNgCodecSettings)
)

private fun getFirstTag(message: IMessageStructure): Int = message.fields.values.first().let {
if (it is IMessageStructure) getFirstTag(it) else it.tag
if (it is IMessageStructure && it.isComponent) getFirstTag(it) else it.tag
}

private fun IMessageStructure.toGroup(isForEncode: Boolean): Group = Group(
Expand Down

0 comments on commit bbcd8ac

Please sign in to comment.