mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 419900 - NPE in BaseClassLookup.lookupInBaseClass
Change-Id: I868bf1918a18a9e7db4aba4d2792510aea03e9a4 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/17551 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
d2b9c42395
commit
e562b5e204
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2009, 2010 Wind River Systems, Inc. and others.
|
||||
* Copyright (c) 2009, 2013 Wind River Systems, Inc. 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
|
||||
|
@ -191,7 +191,8 @@ class BaseClassLookup {
|
|||
}
|
||||
}
|
||||
|
||||
if (nameQualifier == null || Arrays.equals(baseClassScope.getScopeName().getSimpleID(), nameQualifier.toCharArray())) {
|
||||
IName baseClassScopeName = baseClassScope.getScopeName();
|
||||
if (nameQualifier == null || (baseClassScopeName != null && Arrays.equals(baseClassScopeName.getSimpleID(), nameQualifier.toCharArray()))) {
|
||||
IBinding[] members= CPPSemantics.getBindingsFromScope(baseClassScope, data);
|
||||
if (members != null && members.length > 0 && members[0] != null) {
|
||||
if (data.isPrefixLookup()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue