Commits

Jan Lahoda  committed 5da06b5

Do not try to match behind the end of the text.

  • Participants
  • Parent commits 289efc8

Comments (0)

Files changed (1)

File api/src/org/netbeans/modules/jackpot30/impl/pm/BulkSearch.java

 
 //        System.err.println("matcher=" + (System.currentTimeMillis() - s2));
 
-        while (m.find(start)) {
+        while (start < serialized.length() && m.find(start)) {
             for (int cntr = 0; cntr < pattern.groups.length; cntr++) {
                 if (m.group(pattern.groups[cntr]) != null) {
                     String patt = pattern.original.get(cntr);