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:
|
||||
* 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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue