Teach clang_getLocation() to cope with a NULL file argument.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102748 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/CIndex/CIndex.cpp b/tools/CIndex/CIndex.cpp
index 6221a61..f9f7351 100644
--- a/tools/CIndex/CIndex.cpp
+++ b/tools/CIndex/CIndex.cpp
@@ -1296,9 +1296,9 @@
                                    CXFile file,
                                    unsigned line,
                                    unsigned column) {
-  if (!tu)
+  if (!tu || !file)
     return clang_getNullLocation();
-
+  
   ASTUnit *CXXUnit = static_cast<ASTUnit *>(tu);
   SourceLocation SLoc
     = CXXUnit->getSourceManager().getLocation(