Separate multiline code block language from remaining parameters
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 10 Sep 2020 18:10:00 +0000 (21:10 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Fri, 11 Sep 2020 06:23:22 +0000 (09:23 +0300)
src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java

index cd07ec9..80bd89b 100755 (executable)
@@ -39,6 +39,8 @@ public class TokenizerMatch {
     }
 
     public String[] getRegExpGroups(){
+        if (matcher == null) return new String[]{};
+
         String[] result = new String[matcher.groupCount()];
 
         for (int i = 0; i< result.length; i++){