mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed NPE.
This commit is contained in:
parent
8fc8067905
commit
cd61ff4ab7
1 changed files with 3 additions and 4 deletions
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
|
* Sergey Prigogin (Google)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.pdom.dom.cpp;
|
package org.eclipse.cdt.internal.core.pdom.dom.cpp;
|
||||||
|
|
||||||
|
@ -21,8 +22,6 @@ import org.eclipse.cdt.internal.core.index.IIndexScope;
|
||||||
*/
|
*/
|
||||||
public class PDOMCPPUnknownScope extends CPPUnknownScope implements IIndexScope {
|
public class PDOMCPPUnknownScope extends CPPUnknownScope implements IIndexScope {
|
||||||
|
|
||||||
private PDOMCPPBinding fBinding;
|
|
||||||
|
|
||||||
public PDOMCPPUnknownScope(PDOMCPPBinding binding, IASTName name) {
|
public PDOMCPPUnknownScope(PDOMCPPBinding binding, IASTName name) {
|
||||||
super((ICPPUnknownBinding) binding, name);
|
super((ICPPUnknownBinding) binding, name);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +33,11 @@ public class PDOMCPPUnknownScope extends CPPUnknownScope implements IIndexScope
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IIndexScope getParent() {
|
public IIndexScope getParent() {
|
||||||
return fBinding.getScope();
|
return getScopeBinding().getScope();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PDOMCPPBinding getScopeBinding() {
|
public PDOMCPPBinding getScopeBinding() {
|
||||||
return fBinding;
|
return (PDOMCPPBinding) super.getScopeBinding();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue