Added null check.

llvm-svn: 49887
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index 294eb5f..743f44b 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -359,6 +359,9 @@
 
 bool BugReporter::IsCached(ExplodedNode<ValueState>* N) {
   
+  if (!N)
+    return false;
+  
   // HACK: Cache the location of the error.  Don't emit the same
   // warning for the same error type that occurs at the same program
   // location but along a different path.