fixed NPE

This commit is contained in:
Lars Kühne 2002-11-02 16:44:52 +00:00
parent 642d9c5035
commit e70cb13b07
1 changed files with 1 additions and 1 deletions

View File

@ -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;