Skip to content

Commit

Permalink
fixed exception on EPackageRegistration
Browse files Browse the repository at this point in the history
Signed-off-by: Juergen Albert <j.albert@data-in-motion.biz>
  • Loading branch information
juergen-albert committed Feb 6, 2024
1 parent f651f4d commit 6c66c7f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,8 @@ public EClass registerModel(EClass modelEClass, Instant timestamp, boolean ignor
*/
public void addEPackage(EPackage ePackage) {
if (ePackage != providerPackage) {
getProviderEClassesFromEPackage(ePackage).forEach(ec -> registerModel(ec, Instant.now(), false));
getProviderEClassesFromEPackage(ePackage).filter(Predicate.not(this::registered))
.forEach(ec -> registerModel(ec, Instant.now(), false));
}
}

Expand Down

0 comments on commit 6c66c7f

Please sign in to comment.