From: Svjatoslav Agejenko Date: Thu, 10 Sep 2020 18:10:00 +0000 (+0300) Subject: Separate multiline code block language from remaining parameters X-Git-Tag: svjatoslavcommons-1.8~5 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=2e7d732cd81135a3db301e48592e62218fb56af3;p=svjatoslav_commons.git Separate multiline code block language from remaining parameters --- diff --git a/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java b/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java index cd07ec9..80bd89b 100755 --- a/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java +++ b/src/main/java/eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java @@ -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++){