Skip to content

Commit

Permalink
Merge pull request #158 from Open-MBEE/release/3.6.3
Browse files Browse the repository at this point in the history
Release/3.6.3
  • Loading branch information
DavidWillard authored May 21, 2019
2 parents 12c2130 + e0d07e0 commit 83b2fc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ dependencies {
// Other dependencies we're unable to resolve via standard repositories

if (buildAccess == 'internal') {
preCompile group: 'gov.nasa.jpl.cae.magicdraw', name: 'cae-magicdraw-core', version: '3.6.2', ext: 'zip'
preCompile group: 'gov.nasa.jpl.cae.magicdraw', name: 'cae-magicdraw-core', version: '3.6.3', ext: 'zip'
}
else {
preCompile group: 'com.nomagic', name: 'magicdraw', version: '185sp3', classifier: 'MagicDraw_185_sp3_no_install', ext: 'zip'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=3.6.2
version=3.6.3
group=org.openmbee.magicdraw.mdk
descriptorFile=MDR_Plugin_Model_Development_Kit_91110_descriptor.xml
magicdDrawGroupName=gov.nasa.jpl.cae.magicdraw.mdk
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/gov/nasa/jpl/mbee/mdk/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,12 @@ public static <T> List<T> removeDuplicates(Collection<T> elements) {
* @return
*/
public static Collection<Element> getElementsOnDiagram(Diagram diagram) {
return Project.getProject(diagram).getDiagram(diagram).getUsedModelElements(true);
DiagramPresentationElement diagramPresentationElement = Project.getProject(diagram).getDiagram(diagram);
if (diagramPresentationElement == null) {
return Collections.emptyList();
}
diagramPresentationElement.ensureLoaded();
return diagramPresentationElement.getUsedModelElements(true);
}

/**
Expand Down

0 comments on commit 83b2fc2

Please sign in to comment.