Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ad278b90 authored by Vojtisek Didier's avatar Vojtisek Didier
Browse files

Merge branch '424-npe-when-enabling-print-size-of-models-log' into 'master'

do not count instances for actions with type not present in the model

Closes #424

See merge request !312
parents 400fe1d0 d58de99e
Branches master
No related tags found
1 merge request!312do not count instances for actions with type not present in the model
Pipeline #967135 passed
......@@ -103,7 +103,7 @@ public class ABSSizeInfo {
for (GuardedAction guardedAction : dg.getGuardedActions()) {
int nbInstances = 1;
for(GuardParameter param : guardedAction.getGuardParameters()) {
nbInstances *= assetInstanceCount.get(param.getParameterType());
nbInstances *= assetInstanceCount.getOrDefault(param.getParameterType(),0);
}
nbGuardedActionInstance += nbInstances;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment