From 2e7d732cd81135a3db301e48592e62218fb56af3 Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Thu, 10 Sep 2020 21:10:00 +0300 Subject: [PATCH] Separate multiline code block language from remaining parameters --- .../eu/svjatoslav/commons/string/tokenizer/TokenizerMatch.java | 2 ++ 1 file changed, 2 insertions(+) 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++){ -- 2.20.1