Skip to content
Browse files

uninilized container

  • Loading branch information...
1 parent 1880b71 commit 5fc37ff1fba596196bca6ccf7c412d0d1227b22a @kazeburo committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/Scope/Container.pm
View
5 lib/Scope/Container.pm
@@ -23,7 +23,10 @@ sub start_scope_container {
sub scope_container {
my $key = shift;
die "undefined key" if ! defined $key;
- debugf("scope_container is not initilized") if ! defined $CONTEXT;
+ if ( ! defined $CONTEXT ) {
+ debugf("scope_container is not initilized");
+ return;
+ }
if ( @_ ) {
return $CONTEXT->{$key} = shift;
}

0 comments on commit 5fc37ff

Please sign in to comment.
Something went wrong with that request. Please try again.