Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
Umbrello
Commits
288fc912
Commit
288fc912
authored
Jul 04, 2014
by
Ralf Habacker
Browse files
Check against zero namespace pointer.
CCBUG:330018
parent
8495de1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
umbrello/codeimport/kdevcppparser/cpptree2uml.cpp
View file @
288fc912
...
...
@@ -140,7 +140,8 @@ void CppTree2Uml::parseTypedef(TypedefAST* ast)
if
(
type
.
contains
(
QLatin1Char
(
'*'
))
||
isDatatype
)
{
UMLObject
*
inner
=
0
;
if
(
m_currentNamespace
[
m_nsCnt
]
->
baseType
()
==
UMLObject
::
ot_Class
&&
if
(
m_currentNamespace
[
m_nsCnt
]
&&
m_currentNamespace
[
m_nsCnt
]
->
baseType
()
==
UMLObject
::
ot_Class
&&
typeId
==
m_currentNamespace
[
m_nsCnt
]
->
name
())
inner
=
m_currentNamespace
[
m_nsCnt
];
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment