mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for 193333: NPE when copying a series of projects
This commit is contained in:
parent
89158287cb
commit
830fcc0aa3
1 changed files with 3 additions and 2 deletions
|
@ -414,10 +414,11 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
|
||||||
|
|
||||||
public PathEntryResolveInfo getResolveInfo(ICProject cproject, boolean useCache) throws CModelException{
|
public PathEntryResolveInfo getResolveInfo(ICProject cproject, boolean useCache) throws CModelException{
|
||||||
PathEntryResolveInfo info = (PathEntryResolveInfo)resolvedInfoMap.get(cproject);
|
PathEntryResolveInfo info = (PathEntryResolveInfo)resolvedInfoMap.get(cproject);
|
||||||
if(info == null){
|
if(info == null && useCache){
|
||||||
getResolvedPathEntries(cproject);
|
getResolvedPathEntries(cproject);
|
||||||
info = (PathEntryResolveInfo)resolvedInfoMap.get(cproject);
|
info = (PathEntryResolveInfo)resolvedInfoMap.get(cproject);
|
||||||
} else if(!useCache || !getResolveInfoValidState(cproject)){
|
}
|
||||||
|
if(info == null || !useCache || !getResolveInfoValidState(cproject)){
|
||||||
Object[] resolved = getResolvedPathEntries(cproject, false, false);
|
Object[] resolved = getResolvedPathEntries(cproject, false, false);
|
||||||
if(resolved != null)
|
if(resolved != null)
|
||||||
info = (PathEntryResolveInfo)resolved[1];
|
info = (PathEntryResolveInfo)resolved[1];
|
||||||
|
|
Loading…
Add table
Reference in a new issue