Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/*******************************************************************************
* SysML 2 Pilot Implementation
* Copyright (c) 2025 Model Driven Solutions, Inc.
*
* Copyright (c) 2026 Obeo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Eclipse Public License as published by
* the Eclipse Foundation, version 2 of the License.
Expand All @@ -21,6 +22,7 @@
package org.omg.sysml.delegate.invocation;

import java.lang.reflect.InvocationTargetException;
import java.util.Objects;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EOperation;
Expand All @@ -43,6 +45,7 @@ public Object dynamicInvoke(InternalEObject target, EList<?> arguments) throws I
Element member =self.getOwnedMembership().stream().
filter(m->!(m instanceof FeatureMembership)).
map(Membership::getMemberElement).
filter(Objects::nonNull).
findFirst().orElse(null);
return member instanceof Type? member: null;
}
Expand Down