diff options
| author | fukachan <fukachan> | 2001-02-18 11:03:41 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-02-18 11:03:41 +0000 |
| commit | e2ec1c838e78d0428f0397bc6ad4efb71130a73f (patch) | |
| tree | 87564413bc50a121a48883dc40bb665557417dee /fml/lib | |
| parent | 843e4061ceca3a4e719054648ffdcb05acefc5a5 (diff) | |
| download | fml8-e2ec1c838e78d0428f0397bc6ad4efb71130a73f.tar.gz fml8-e2ec1c838e78d0428f0397bc6ad4efb71130a73f.tar.bz2 fml8-e2ec1c838e78d0428f0397bc6ad4efb71130a73f.zip | |
check ticket object creation successes or not
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/FML/Process/Distribute.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm index efe1dced..b9aed79b 100644 --- a/fml/lib/FML/Process/Distribute.pm +++ b/fml/lib/FML/Process/Distribute.pm @@ -272,9 +272,14 @@ sub _ticket_check eval qq{ require $pkg; $pkg->import();}; unless ($@) { my $ticket = $pkg->new($curproc, $args); - $ticket->assign($curproc, $args); - $ticket->update_status($curproc, $args); - $ticket->update_db($curproc, $args); + if (defined $ticket) { + $ticket->assign($curproc, $args); + $ticket->update_status($curproc, $args); + $ticket->update_db($curproc, $args); + } + else { + Log("creating ticket object failed"); + } } else { Log($@); |
