X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc01c6a871dbbfd0cc84e26eb9f94aeb539e613e..e81fd0093fecb13ce2c734ad7f18f15d586c4edc:/examples/simdag/dot/dot_test.c diff --git a/examples/simdag/dot/dot_test.c b/examples/simdag/dot/dot_test.c index 4a6da7bf27..3edb40d39e 100644 --- a/examples/simdag/dot/dot_test.c +++ b/examples/simdag/dot/dot_test.c @@ -48,6 +48,10 @@ int main(int argc, char **argv) /* load the DOT file */ dot = SD_dotload(argv[2]); + if(dot == NULL){ + INFO0("No dot load may be you have a cycle in your graph"); + return -1; + } /* Display all the tasks */ INFO0