projects
/
org.ibex.js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix to JSRegexp
[org.ibex.js.git]
/
src
/
org
/
ibex
/
js
/
JSRegexp.java
diff --git
a/src/org/ibex/js/JSRegexp.java
b/src/org/ibex/js/JSRegexp.java
index
aa68c2f
..
25b890f
100644
(file)
--- a/
src/org/ibex/js/JSRegexp.java
+++ b/
src/org/ibex/js/JSRegexp.java
@@
-110,6
+110,7
@@
public class JSRegexp extends JS.Immutable {
}
private static JS matchToExecResult(GnuRegexp.REMatch match, GnuRegexp.RE re, String s) {
+ if (match == null) return null;
try {
JS ret = new JS.Obj();
ret.put(JSU.S("index"), JSU.N(match.getStartIndex()));