mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
NPE check.
This commit is contained in:
parent
c3e795c6d0
commit
bb792ef3b0
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ class PDOMCache {
|
|||
* @return a PDOM instance or null if the PDOM version was too old
|
||||
*/
|
||||
public PDOM getPDOM(IPath path, IIndexLocationConverter converter) {
|
||||
|
||||
if (path==null){
|
||||
return null;
|
||||
}
|
||||
|
||||
PDOM result= null;
|
||||
File file = path.toFile();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue