Improved: General refactoring and code improvements, package
org.apache.ofbiz.common.image.
Thanks Julian Leichert for reporting and providing the patch.
@@ -224,12 +224,7 @@ public class ImageTransform {
/* PARSING */
try {
document = UtilXml.readXmlDocument(new FileInputStream(fileFullPath), fileFullPath);
- } catch (ParserConfigurationException e) {
- String errMsg = UtilProperties.getMessage(resource, "ImageTransform.errors_occurred_during_parsing", locale) + " ImageProperties.xml " + e.toString();
- Debug.logError(errMsg, module);
- result.put(ModelService.ERROR_MESSAGE, "error");
- return result;
- } catch (SAXException e) {
+ } catch (ParserConfigurationException | SAXException e) {
String errMsg = UtilProperties.getMessage(resource, "ImageTransform.errors_occurred_during_parsing", locale) + " ImageProperties.xml " + e.toString();
Debug.logError(errMsg, module);
result.put(ModelService.ERROR_MESSAGE, "error");
