diff -r eaa43f765cbd -r 06a0015b6a5c jitcraft/Code.h --- a/jitcraft/Code.h Fri Jul 20 00:03:10 2012 -0700 +++ b/jitcraft/Code.h Mon Jul 23 01:19:44 2012 -0700 @@ -69,7 +69,7 @@ return Type::cast(locals_->at(index)); } unsigned nlocals() { - return locals_->length(); + return locals_ ? locals_->length() : 0; } unsigned maxStackDepth() { return maxStackDepth_;