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

llvm-svn: 102748
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp
index 6221a61..f9f7351 100644
--- a/clang/tools/CIndex/CIndex.cpp
+++ b/clang/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(