Fix null dereference.

llvm-svn: 70417
This commit is contained in:
Ted Kremenek 2009-04-29 22:05:03 +00:00
parent 8ddd0b3599
commit 9f08b842e1
1 changed files with 1 additions and 1 deletions

View File

@ -1675,7 +1675,7 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) {
llvm::OwningPtr<PathDiagnostic>
D(new PathDiagnostic(R.getBugType().getName(),
PD->useVerboseDescription()
!PD || PD->useVerboseDescription()
? R.getDescription() : R.getShortDescription(),
BT.getCategory()));