Skip to content

Commit

Permalink
Fix of a missing null check on obj->proto
Browse files Browse the repository at this point in the history
  • Loading branch information
wisec committed Feb 13, 2012
1 parent 1af6e2e commit 5cc368c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/jsinterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4087,7 +4087,7 @@ BEGIN_CASE(JSOP_GETELEM)
char *name=NULL;
clasp = obj->getClass();
str____=(rref.toString());
if(!strcmp(obj->proto->getClass()->name,"XPC_WN_ModsAllowed_NoCall_Proto_JSClass")){
if(obj->proto && !strcmp(obj->proto->getClass()->name,"XPC_WN_ModsAllowed_NoCall_Proto_JSClass")){
JSObject *_tobj=obj;
classname=clasp->name;
if(obj->isProxy()){
Expand Down

0 comments on commit 5cc368c

Please sign in to comment.