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

Fixed NPE.

This commit is contained in:
Sergey Prigogin 2008-05-14 10:50:04 +00:00
parent 8fc8067905
commit cd61ff4ab7

View file

@ -7,6 +7,7 @@
*
* Contributors:
* Markus Schorn - initial API and implementation
* Sergey Prigogin (Google)
*******************************************************************************/
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 {
private PDOMCPPBinding fBinding;
public PDOMCPPUnknownScope(PDOMCPPBinding binding, IASTName name) {
super((ICPPUnknownBinding) binding, name);
}
@ -34,11 +33,11 @@ public class PDOMCPPUnknownScope extends CPPUnknownScope implements IIndexScope
@Override
public IIndexScope getParent() {
return fBinding.getScope();
return getScopeBinding().getScope();
}
@Override
public PDOMCPPBinding getScopeBinding() {
return fBinding;
return (PDOMCPPBinding) super.getScopeBinding();
}
}