Changeset: fa8329ec1ff6 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fa8329ec1ff6 Modified Files: monetdb5/optimizer/opt_mapreduce.c Branch: Oct2014 Log Message:
Add error check. diffs (12 lines): diff --git a/monetdb5/optimizer/opt_mapreduce.c b/monetdb5/optimizer/opt_mapreduce.c --- a/monetdb5/optimizer/opt_mapreduce.c +++ b/monetdb5/optimizer/opt_mapreduce.c @@ -84,6 +84,8 @@ MRgetCloud(int *ret, str *mrcluster) MT_lock_set(&mal_contextLock, "mapreduce"); cloud = BATdescriptor(*ret); /* should succeed */ + if (cloud == NULL) + throw(MAL, "mapreduce.getCloud", RUNTIME_OBJECT_MISSING); mapnodes = (mapnode*)GDKzalloc(sizeof(mapnode) * (BATcount(cloud) + 1)); if (mapnodes == NULL) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list