Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2015-06-10 23:57:50 +0000
committerSergey Prigogin2015-06-11 00:02:41 +0000
commitd13a53c46144740cf751e1d92b4d2af37871b196 (patch)
tree2e24c619333c90f8af703b8f815201cee6772e55
parentbd7fad5f67386d76978305c47eecf3cb3a9594ea (diff)
downloadorg.eclipse.cdt-d13a53c46144740cf751e1d92b4d2af37871b196.tar.gz
org.eclipse.cdt-d13a53c46144740cf751e1d92b4d2af37871b196.tar.xz
org.eclipse.cdt-d13a53c46144740cf751e1d92b4d2af37871b196.zip
Bug 469890 - NPE in ProblemHighlighting.consumes due to an orphan AST
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTTypeIdInitializerExpression.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTTypeIdInitializerExpression.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTTypeIdInitializerExpression.java
index 25b573b30c8..a50af448471 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTTypeIdInitializerExpression.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTTypeIdInitializerExpression.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2011 IBM Corporation and others.
+ * Copyright (c) 2005, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,6 +9,7 @@
* John Camelon (IBM Rational Software) - Initial API and implementation
* Yuan Zhang / Beth Tibbitts (IBM Research)
* Markus Schorn (Wind River Systems)
+ * Sergey Prigogin (Google)
*******************************************************************************/
package org.eclipse.cdt.internal.core.dom.parser.c;
@@ -31,7 +32,7 @@ public class CASTTypeIdInitializerExpression extends ASTNode implements ICASTTyp
public CASTTypeIdInitializerExpression(IASTTypeId t, IASTInitializer i) {
setTypeId(t);
- fInitializer = i;
+ setInitializer(i);
}
@Override

Back to the top