summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2006-04-11 01:16:34 +0000
committerJason Woodward2006-04-11 01:16:34 +0000
commit2a54be5a02e552a1291d95e905bf58e953b7a71d (patch)
tree51a9d6068e6e8add9033a899ff310f85e3058166
parentd7e15354b8861f43aff95b1d30a3c66e82be8b98 (diff)
downloadJaos-DBI-2a54be5a02e552a1291d95e905bf58e953b7a71d.tar.gz
bail early if we can in _del_self_from_cache
-rw-r--r--lib/Jaos/DBI.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Jaos/DBI.pm b/lib/Jaos/DBI.pm
index 5dc3d23..25f83a0 100644
--- a/lib/Jaos/DBI.pm
+++ b/lib/Jaos/DBI.pm
@@ -962,6 +962,8 @@ sub _del_obj_from_cache
sub _del_self_from_cache
{
my $self = shift;
+ return unless $self->_cache;
+ return unless ref($self);
if (my $key = $self->primary_column) {
$self->_del_obj_from_cache($self->{$key});