Skip to content

Commit

Permalink
[2045] Rule DWF_D_42 raise error on some Capella model
Browse files Browse the repository at this point in the history
Bug 2045

Change-Id: If9e6f5fa09b1e647b542934dde9eed6113acf4fb
Signed-off-by: Ali Akar <ali.akar82@gmail.com>
  • Loading branch information
aliakar82 authored and pdulth committed May 15, 2018
1 parent c7d1abb commit 01d3cc3
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2016 THALES GLOBAL SERVICES.
* Copyright (c) 2006, 2018 THALES GLOBAL SERVICES.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -121,7 +121,7 @@ private void validatePackageVisibility(IValidationContext context, Relationship

if (relation instanceof Association) {
Association association = (Association) relation;
if (association.getNavigableMembers().size()>0){
if (!association.getNavigableMembers().isEmpty() && !association.getOwnedMembers().isEmpty()){
Property navigableMember = association.getNavigableMembers().get(0);
Property ownedMemmber = association.getOwnedMembers().get(0);

Expand Down

0 comments on commit 01d3cc3

Please sign in to comment.