Permalink
Browse files

Don't try to deref null list of methods

git-svn-id: https://svn.parrot.org/parrot/branches/nsentry2@41424 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 35056ff commit f59cf39b03abb3eedd703e6dd7f9b46133f6a4de bacek committed Sep 22, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 runtime/parrot/library/P6object.pir
@@ -242,6 +242,7 @@ Deprecated; use add_parent(class, parentclass)
unless $I0 goto method_loop
add_method:
$P0 = methods[$S0]
+ if null $P0 goto method_loop
$I0 = isa $P0, 'NCI'
if $I0 goto method_loop
push_eh err

0 comments on commit f59cf39

Please sign in to comment.