bytemessage 일때, mapping 버그 fix

bytemessage는 각 item항목 초기값 null이 아님, byte[0]임.
This commit is contained in:
cho
2026-01-10 12:46:05 +09:00
parent 9592ccd6e9
commit d954388c5a
@@ -425,9 +425,16 @@ public class Transformer {
errors.add(targetMessage.toString());
return;
}
String type = targetMessage.getLayout().getLayoutType().getName();
// Grid to Group 맵핑 Grid기준 첫번째 항목만 맵핑되도록 원래는 Grid가 count수만큼 반복부 돌며, 덮어씌기가 되어 마지막 항목의 값이 맵핑됨.
if ( resultItem.getValue() != null ) return;
if ( resultItem.getValue() != null ) {
if ( !( resultItem.getValue() instanceof byte[] && ((byte[])resultItem.getValue()).length == 0 ) ) {
return;
}
}
/**
*
* 1. field|attribute : transform 을 바로 진행한다. (transformEach)