first round of new circ checkin logic. more testing, etc. to come.
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / AppUtils.pm
index e61a132..c0f0246 100644 (file)
@@ -827,6 +827,7 @@ sub fetch_open_transit_by_copy {
 
 sub unflesh_copy {
        my( $self, $copy ) = @_;
+       return undef unless $copy;
        $copy->status( $copy->status->id ) if ref($copy->status);
        $copy->location( $copy->location->id ) if ref($copy->location);
        $copy->circ_lib( $copy->circ_lib->id ) if ref($copy->circ_lib);