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

NPE check.

This commit is contained in:
Warren Paul 2008-03-28 20:50:04 +00:00
parent c3e795c6d0
commit bb792ef3b0

View file

@ -56,6 +56,11 @@ class PDOMCache {
* @return a PDOM instance or null if the PDOM version was too old * @return a PDOM instance or null if the PDOM version was too old
*/ */
public PDOM getPDOM(IPath path, IIndexLocationConverter converter) { public PDOM getPDOM(IPath path, IIndexLocationConverter converter) {
if (path==null){
return null;
}
PDOM result= null; PDOM result= null;
File file = path.toFile(); File file = path.toFile();