Skip to content

Commit

Permalink
#1092 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 13, 2022
1 parent 68f6375 commit 8b3b058
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -140,7 +140,9 @@ private int parseVarDef(final DetailAST variable, final String name) {
*/
private String getText(final DetailAST node) {
final String ret;
if (0 == node.getChildCount()) {
if (node == null) {
ret = "";
} else if (0 == node.getChildCount()) {
ret = node.getText();
} else {
final StringBuilder result = new StringBuilder();
Expand Down

0 comments on commit 8b3b058

Please sign in to comment.