clang/find-unprefixed-members.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 913bf1ab0e434b628b415d37e1cbaf9bb0d1d70c
Author: Miklos Vajna <[email protected]>
Date:   Mon Jan 4 09:13:28 2016 +0100

    clang: guard against 0 pRecord

diff --git a/clang/find-unprefixed-members.cxx 
b/clang/find-unprefixed-members.cxx
index 5c92f70..9cb3503 100644
--- a/clang/find-unprefixed-members.cxx
+++ b/clang/find-unprefixed-members.cxx
@@ -95,7 +95,7 @@ public:
 
         clang::RecordDecl* pRecord = 
pDecl->getQualifier()->getAsType()->getAsCXXRecordDecl();
 
-        if (m_rContext.match(pRecord->getQualifiedNameAsString()))
+        if (pRecord && m_rContext.match(pRecord->getQualifiedNameAsString()))
         {
             std::string aName = pDecl->getNameAsString();
             if (aName.find("s") != 0)
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to