Skip to content
Snippets Groups Projects
Commit 6e9cc7fe authored by Andreas Bayha's avatar Andreas Bayha
Browse files

Variability: Fixed check for unchanged PresenceConditions


There was the problem, that empty presence conditions (i.e. null) could
never be filled, sue to an incorrect update check.

Issue-ref: 4273
Issue-URL: af3#4273

Signed-off-by: default avatarAndreas Bayha <bayha@fortiss.org>
parent 9537a311
No related branches found
No related tags found
1 merge request!1894273
Pipeline #37106 canceled
Pipeline: maven-releng

#37107

    ......@@ -176,7 +176,8 @@ public class VariabilityUtils {
    final OptionalVariationPointSpecification finalSpec = spec;
    // Change model only, if the new presence condition is different from the old one
    if(!spec.getPresenceCondition().getStringRepresentation().equals(pcStr)) {
    PresenceCondition oldPC = spec.getPresenceCondition();
    if(oldPC == null || !oldPC.getStringRepresentation().equals(pc.getStringRepresentation())) {
    ICommandStackService.getInstance().runAsCommand(elem,
    () -> finalSpec.setPresenceCondition(pc));
    }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment