1
0
Fork 0
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:
Anton Leherbauer 2007-09-14 08:36:08 +00:00
parent 89158287cb
commit 830fcc0aa3

View file

@ -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];