fixed NPE
This commit is contained in:
parent
642d9c5035
commit
e70cb13b07
|
|
@ -172,7 +172,7 @@ public class DetailAST
|
|||
public DetailAST getLastChild()
|
||||
{
|
||||
AST ast = getFirstChild();
|
||||
while (ast.getNextSibling() != null) {
|
||||
while (ast != null && ast.getNextSibling() != null) {
|
||||
ast = ast.getNextSibling();
|
||||
}
|
||||
return (DetailAST) ast;
|
||||
|
|
|
|||
Loading…
Reference in New Issue