Skip to content

Commit

Permalink
Merge Branch Freeze into Develop
Browse files Browse the repository at this point in the history
  • Loading branch information
azoitl authored Jan 8, 2025
2 parents eb55f32 + 76b50e0 commit 472eba0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public static EStructuralFeature getTargetFeature(final GraphicalAnnotation anno
}

public static GraphicalAnnotationModel getAnnotationModel(final EditPart editPart) {
if (editPart.getViewer().getEditPartFactory() instanceof final Abstract4diacEditPartFactory factory) {
if (editPart.getViewer().getEditPartFactory() instanceof final Abstract4diacEditPartFactory factory
&& factory.getEditor() != null) {
return factory.getEditor().getAdapter(GraphicalAnnotationModel.class);
}
return null;
Expand Down

0 comments on commit 472eba0

Please sign in to comment.