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~54^2~300 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=f919e46fe6cf0ceaa39c93393183d2302c095c59;p=irspy-moved-to-github.git 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';