fix : File not accessible after save with Excel Input transform
package org.apache.hop.metadata.serializer.xml;
-import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
-import java.lang.reflect.ParameterizedType;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.apache.hop.core.Const;
import org.apache.hop.core.encryption.Encr;
import org.apache.hop.core.exception.HopException;
import org.apache.hop.core.exception.HopXmlException;
import org.apache.hop.core.xml.XmlHandler;
-import org.apache.hop.metadata.api.HopMetadataObject;
-import org.apache.hop.metadata.api.HopMetadataProperty;
-import org.apache.hop.metadata.api.HopMetadataWrapper;
-import org.apache.hop.metadata.api.IEnumHasCode;
-import org.apache.hop.metadata.api.IEnumHasCodeAndDescription;
-import org.apache.hop.metadata.api.IHopMetadata;
-import org.apache.hop.metadata.api.IHopMetadataObjectFactory;
-import org.apache.hop.metadata.api.IHopMetadataProvider;
-import org.apache.hop.metadata.api.IIntCodeConverter;
+import org.apache.hop.metadata.api.*;
import org.apache.hop.metadata.util.ReflectionUtil;
import org.w3c.dom.Node;
+import java.lang.reflect.Field;
+import java.lang.reflect.Modifier;
+import java.lang.reflect.ParameterizedType;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
public class XmlMetadataUtil {
/**
* This method looks at the fields in the class of the provided object. It then sees which fields
@@ -375,6 +368,7 @@ public class XmlMetadataUtil {
} else {
groupNode = XmlHandler.getSubNode(node, groupKey);
}
+ if (tagNode != null) {
Object value =
deSerializeFromXml(
object,
@@ -410,6 +404,7 @@ public class XmlMetadataUtil {
}
}
}
+ }
return object;
}
