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:
parent
2a234109d5
commit
252f33f0cd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue