Do not advance PSI builder beyond end of token stream

This commit is contained in:
Roman Shevchenko
2010-07-16 14:11:29 +04:00
parent fa516d59d3
commit 3be2affff5
@@ -476,6 +476,8 @@ public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder {
}
public void advanceLexer() {
if (eof()) return;
if (!myTokenTypeChecked) {
LOG.assertTrue(eof(), "Probably a bug: eating token without its type checking");
}