diff --git a/src/com/hannonhill/smt/util/WebServicesUtil.java b/src/com/hannonhill/smt/util/WebServicesUtil.java index 1e253ff..5bc2491 100644 --- a/src/com/hannonhill/smt/util/WebServicesUtil.java +++ b/src/com/hannonhill/smt/util/WebServicesUtil.java @@ -220,8 +220,7 @@ private static String trimMetadataFieldValue(String fieldName, String fieldValue /** * Assigns given fieldValue of given fieldName to metadata object if it is a standard metadata field or - * adds it to the list of - * dynamicFields. + * adds it to the list of dynamicFields. * * @param metadata * @param dynamicFields @@ -306,6 +305,10 @@ else if (field.getChooserType() == ChooserType.FILE) { fieldValue = JTidy.tidyContentConditionally(fieldValue); String path = XmlAnalyzer.getFirstSrcAttribute(fieldValue); + + if (path == null) + path = fieldValue; + if (path != null && !path.trim().equals("")) { path = path.trim();