fixed NPE

This commit is contained in:
Lars Kühne 2002-11-03 08:37:00 +00:00
parent 4945b82e6d
commit 1aa2134399
1 changed files with 7 additions and 2 deletions

View File

@ -130,8 +130,13 @@ class TreeWalker
{
mMessages.reset();
notifyBegin(aContents);
aAST.setParent(null);
process(aAST);
// empty files are not flagged by javac, will yield aAST == null
if (aAST != null) {
aAST.setParent(null);
process(aAST);
}
notifyEnd();
}