[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [umbrello/Applications/15.04] umbrello/codeimport/kdevcppparser: Coverity check of master@e2a24e0,
From: Ralf Habacker <ralf.habacker () freenet ! de>
Date: 2015-04-01 17:41:16
Message-ID: E1YdMdg-00049x-6O () scm ! kde ! org
[Download RAW message or body]
Git commit af7b07b27ac3fba828c865831fff09bf392ecf58 by Ralf Habacker.
Committed on 01/04/2015 at 17:35.
Pushed by habacker into branch 'Applications/15.04'.
Coverity check of master@e2a24e0, CID 71402: Dereference after null check \
(FORWARD_NULL).
CCBUG:340646
M +2 -0 umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
http://commits.kde.org/umbrello/af7b07b27ac3fba828c865831fff09bf392ecf58
diff --git a/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp \
b/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp index b9d1104..3f11c30 100644
--- a/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
+++ b/umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
@@ -561,6 +561,8 @@ void CppTree2Uml::parseFunctionDeclaration(GroupAST* funSpec, \
GroupAST* storageS void CppTree2Uml::parseFunctionArguments(DeclaratorAST* \
declarator, UMLOperation* method)
{
+ if (!declarator)
+ return;
ParameterDeclarationClauseAST* clause = \
declarator->parameterDeclarationClause();
if (clause && clause->parameterDeclarationList()){
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic