projects
/
org.ibex.js.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfcc736
)
fix to JSRegexp
author
adam
<adam@megacz.com>
Fri, 7 Jan 2005 18:45:41 +0000
(18:45 +0000)
committer
adam
<adam@megacz.com>
Fri, 7 Jan 2005 18:45:41 +0000
(18:45 +0000)
darcs-hash:
20050107184541
-5007d-
43328c5cfd82a07c81ac488c895435352342257a
.gz
src/org/ibex/js/JSRegexp.java
patch
|
blob
|
history
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()));