Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=220367 :
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=220367 :

Fix: if in RegExpImpl.getParenSubString parens.get(i) is null, return
emptySubstring

If a branch of | with capturing () does not match , then RegExpImpl.parens will
contain null for corresponding $<group-number> according to code in
NativeRegExp.executeRegExp(). The current code does not check for a possible
null in RegExpImpl.parens when calling toString and the patch fixes that by
making sure that getParenSubString return SubString.emptySubString in such
cases.

Pilarbrist/rhino,Pilarbrist/rhino,rasmuserik/rhino,Distrotech/rhino,swannodette/rhino,tuchida/rhino,swannodette/rhino,tejassaoji/RhinoCoarseTainting,ashwinrayaprolu1984/rhino,swannodette/rhino,tntim96/htmlunit-rhino-fork,sam/htmlunit-rhino-fork,sainaen/rhino,lv7777/egit_test,tuchida/rhino,Angelfirenze/rhino,tejassaoji/RhinoCoarseTainting,qhanam/rhino,rasmuserik/rhino,Pilarbrist/rhino,lv7777/egit_test,ashwinrayaprolu1984/rhino,ashwinrayaprolu1984/rhino,AlexTrotsenko/rhino,lv7777/egit_test,ashwinrayaprolu1984/rhino,tntim96/rhino-apigee,AlexTrotsenko/rhino,tejassaoji/RhinoCoarseTainting,qhanam/rhino,qhanam/rhino,tntim96/rhino-apigee,tejassaoji/RhinoCoarseTainting,jsdoc3/rhino,ashwinrayaprolu1984/rhino,Pilarbrist/rhino,lv7777/egit_test,ashwinrayaprolu1984/rhino,tuchida/rhino,InstantWebP2P/rhino-android,Angelfirenze/rhino,tejassaoji/RhinoCoarseTainting,AlexTrotsenko/rhino,qhanam/rhino,Angelfirenze/rhino,sainaen/rhino,Pilarbrist/rhino,tejassaoji/RhinoCoarseTainting,Angelfirenze/rhino,Angelfirenze/rhino,InstantWebP2P/rhino-android,tuchida/rhino,sam/htmlunit-rhino-fork,sam/htmlunit-rhino-fork,tntim96/rhino-jscover-repackaged,sainaen/rhino,swannodette/rhino,swannodette/rhino,AlexTrotsenko/rhino,tntim96/htmlunit-rhino-fork,ashwinrayaprolu1984/rhino,tntim96/rhino-jscover-repackaged,swannodette/rhino,Angelfirenze/rhino,sam/htmlunit-rhino-fork,tntim96/rhino-jscover,sainaen/rhino,jsdoc3/rhino,swannodette/rhino,Angelfirenze/rhino,Distrotech/rhino,Pilarbrist/rhino,sam/htmlunit-rhino-fork,sainaen/rhino,sam/htmlunit-rhino-fork,sam/htmlunit-rhino-fork,AlexTrotsenko/rhino,tuchida/rhino,sainaen/rhino,tntim96/rhino-apigee,Pilarbrist/rhino,AlexTrotsenko/rhino,tuchida/rhino,sainaen/rhino,lv7777/egit_test,lv7777/egit_test,tntim96/rhino-jscover,jsdoc3/rhino,AlexTrotsenko/rhino,lv7777/egit_test,tejassaoji/RhinoCoarseTainting,tuchida/rhino