From 76fe36dd951ecba27a6f40486e235f939e359de8 Mon Sep 17 00:00:00 2001 From: Ivan Gomes Date: Tue, 11 Aug 2020 10:16:17 -0700 Subject: [PATCH 1/2] MDK-51 Null check enriched export environment variable --- src/main/java/gov/nasa/jpl/mbee/mdk/util/MDUtils.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/gov/nasa/jpl/mbee/mdk/util/MDUtils.java b/src/main/java/gov/nasa/jpl/mbee/mdk/util/MDUtils.java index 0de8fff73..04fcf67df 100644 --- a/src/main/java/gov/nasa/jpl/mbee/mdk/util/MDUtils.java +++ b/src/main/java/gov/nasa/jpl/mbee/mdk/util/MDUtils.java @@ -213,7 +213,12 @@ public static void exportSVG(File svgFile, DiagramPresentationElement diagramPre Transformer transformer = transformerFactory.newTransformer(); transformer.transform(source, result); } finally { - System.setProperty(SVG_ENRICHED_EXPORT_PROPERTY_NAME, originalSvgEnrichedExportPropertyValue); + if (originalSvgEnrichedExportPropertyValue != null) { + System.setProperty(SVG_ENRICHED_EXPORT_PROPERTY_NAME, originalSvgEnrichedExportPropertyValue); + } + else { + System.clearProperty(SVG_ENRICHED_EXPORT_PROPERTY_NAME); + } } } From 9e7e857c10193e51655245932a4d1fd71b3f1a64 Mon Sep 17 00:00:00 2001 From: Ivan Gomes Date: Tue, 11 Aug 2020 10:17:49 -0700 Subject: [PATCH 2/2] Update version number to 4.4.1 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 23bbd3f86..59e7d51ad 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=4.4.0 +version=4.4.1 group=org.openmbee.magicdraw.mdk descriptorFile=MDR_Plugin_Model_Development_Kit_91110_descriptor.xml magicdDrawGroupName=gov.nasa.jpl.cae.magicdraw.mdk