1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix NPE with node copys.

This commit is contained in:
Emanuel Graf 2009-11-23 13:44:41 +00:00
parent 2a234109d5
commit 252f33f0cd

View file

@ -56,7 +56,7 @@ public class MacroExpansionHandler {
}
protected boolean isStatementWithMixedLocation(IASTStatement node) {
if(node.getNodeLocations().length > 1) {
if(node.getNodeLocations() != null && node.getNodeLocations().length > 1) {
for (IASTNodeLocation loc : node.getNodeLocations()) {
if (loc instanceof IASTMacroExpansionLocation) {
return true;