X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/mapping.git/blobdiff_plain/23387ed9d46023e630c4e061a68fcb90cc17e52a..732a7291d1f84c7c95026129b8550b84f69337e5:/src/and/Mapping/Association.java diff --git a/src/and/Mapping/Association.java b/src/and/Mapping/Association.java index 7d24134..ab8ebdc 100644 --- a/src/and/Mapping/Association.java +++ b/src/and/Mapping/Association.java @@ -94,10 +94,18 @@ public class Association implements Serializable /** * Replace the GNode of the association. * @param _g The replacing GNode + * @return The state of the replacement */ - public void setGNode( GNode _g ) + public boolean setGNode( GNode _g ) { - g = _g ; + if( _g != null ) + { + g = _g ; + return true ; + } else { + System.err.println( "(Association) The new GNode is null!" ) ; + return false ; + } }