don't call ->content if there is no response
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Aug 2009 17:44:22 +0000 (17:44 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 18 Aug 2009 17:44:22 +0000 (17:44 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13868 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm

index dbfc384..8881e2f 100644 (file)
@@ -369,7 +369,7 @@ sub request {
                 $err = $resp;
                        $self->log(E, "request error $method : $argstr : $err");
             } else {
-                $val = $resp->content;
+                $val = $resp->content if $resp;
             }
         }