Fix null dereference.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70417 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index 4e88baa..34a5fbf 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -1675,7 +1675,7 @@
   
   llvm::OwningPtr<PathDiagnostic>
     D(new PathDiagnostic(R.getBugType().getName(),
-                         PD->useVerboseDescription()
+                         !PD || PD->useVerboseDescription()
                          ? R.getDescription() : R.getShortDescription(),
                          BT.getCategory()));