Doc says if field is missing ignore it, but it was being removed from destination message.
git-svn-id: https://j8583.svn.sourceforge.net/svnroot/j8583/j8583@103 db60a039-f72e-0410-b1d2-baa000846441
This commit is contained in:
@@ -386,9 +386,7 @@ public class IsoMessage {
|
||||
public void copyFieldsFrom(IsoMessage src, int...idx) {
|
||||
for (int i : idx) {
|
||||
IsoValue<Object> v = src.getField(i);
|
||||
if (v == null) {
|
||||
setField(i, null);
|
||||
} else {
|
||||
if (v != null) {
|
||||
setValue(i, v.getValue(), v.getEncoder(), v.getType(), v.getLength());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user