diff --git a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/CPopulateASTViewAction.java b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/CPopulateASTViewAction.java index 7325fa4ed72..fbac61dca2a 100644 --- a/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/CPopulateASTViewAction.java +++ b/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/CPopulateASTViewAction.java @@ -58,7 +58,7 @@ public class CPopulateASTViewAction extends CBaseVisitorAction implements IPopul private void addRoot(IASTNode node) { if (!(node.getNodeLocations().length > 0 && - node.getNodeLocations()[0].getNodeOffset() > 0 && + node.getNodeLocations()[0].getNodeOffset() >= 0 && node.getNodeLocations()[0].getNodeLength() > 0)) return;