From 37cb1124382eec0585e92f91e9b0bfab579a9264 Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 7 Jan 2005 18:45:41 +0000 Subject: [PATCH] fix to JSRegexp darcs-hash:20050107184541-5007d-43328c5cfd82a07c81ac488c895435352342257a.gz --- src/org/ibex/js/JSRegexp.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/ibex/js/JSRegexp.java b/src/org/ibex/js/JSRegexp.java index aa68c2f..25b890f 100644 --- 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())); -- 1.7.10.4