From bca927f8b8696654bee231fbf9106a8077ec77aa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Tue, 20 Feb 2007 20:54:43 +0000 Subject: [PATCH] try to find a RegJob event with non-empty JDL --- org.glite.lb.server/src/lb_plugin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 54bfee3..2aff2e2 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -280,7 +280,10 @@ static int get_classad_attr(const char* attr, glite_jp_context_t ctx, lb_handle // Get the attribute from JDL int i = 0; while (h->events[i]){ - if (h->events[i]->type == EDG_WLL_EVENT_REGJOB){ + if (h->events[i]->type == EDG_WLL_EVENT_REGJOB + && h->events[i]->regJob.jdl + && h->events[i]->regJob.jdl[0]) + { void *beh; if (! h->classad_plugin->ops.open_str(h->classad_plugin->fpctx, h->events[i]->regJob.jdl, "", "", &beh)){ if (! h->classad_plugin->ops.attr(h->classad_plugin->fpctx, beh, attr, av)) -- 1.8.2.3