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:
chochos
2012-05-18 15:28:06 +00:00
parent ee18bd78e6
commit da6bb2bb23
@@ -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());
}
}