From: Mike Taylor Date: Wed, 1 Aug 2007 15:11:20 +0000 (+0000) Subject: Test whether $record is defined before checking its contents. X-Git-Tag: CPAN-v1.02~355 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=5010ade9ae74a45c3a9c06d498dbe64f9187747c Test whether $record is defined before checking its contents. --- diff --git a/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm b/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm index fc1cc64..eb3a342 100644 --- a/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm +++ b/lib/ZOOM/IRSpy/Test/ResultSet/Named.pm @@ -1,4 +1,4 @@ -# $Id: Named.pm,v 1.5 2007-03-15 11:38:53 mike Exp $ +# $Id: Named.pm,v 1.6 2007-08-01 15:11:20 mike Exp $ # See the "Main" test package for documentation @@ -86,7 +86,7 @@ sub completed_search_b { $error = 'hitcount'; } - if ($record ne $test_args->{'record_a'}) { + if (!defined $record || $record ne $test_args->{'record_a'}) { $conn->log('irspy_test', 'Named result set not supported: ', 'Mis-matching records'); $error = 'record';