X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/mapping.git/blobdiff_plain/c5259b6a754655006e41cae8ff32292b7eee4913..c2eae60162c5550cd94b772f4b67e0dcd4a1191f:/src/and/Mapping/Mapping.java diff --git a/src/and/Mapping/Mapping.java b/src/and/Mapping/Mapping.java index c6ee73a..9429df4 100644 --- a/src/and/Mapping/Mapping.java +++ b/src/and/Mapping/Mapping.java @@ -59,9 +59,17 @@ public class Mapping implements Serializable } /** For the usage of algorithms which map groups of tasks on cluster **/ + GNode tmp = null ; for( int i = 0 ; i < at.size() ; i++ ) { - insertMapping( new Association( c.nextGNode(), at.get( i ) ) ) ; + tmp = c.nextGNode() ; + if( tmp != null ) + { + insertMapping( new Association( tmp, at.get( i ) ) ) ; + } else { + System.err.println( "Error during reception of the next GNode !" ) ; + break ; + } } }