Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Umbrello
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SDK
Umbrello
Commits
554d9e43
Commit
554d9e43
authored
9 years ago
by
Ralf Habacker
Browse files
Options
Downloads
Patches
Plain Diff
Coverity check on master@bd16929, CID 71462: Unchecked dynamic_cast (FORWARD_NULL).
CCBUG:340646
parent
3d110b30
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
umbrello/codegenerators/codeclassfield.cpp
+4
-0
4 additions, 0 deletions
umbrello/codegenerators/codeclassfield.cpp
with
4 additions
and
0 deletions
umbrello/codegenerators/codeclassfield.cpp
+
4
−
0
View file @
554d9e43
...
...
@@ -330,6 +330,10 @@ int CodeClassField::minimumListOccurances()
if
(
!
parentIsAttribute
())
{
UMLRole
*
role
=
dynamic_cast
<
UMLRole
*>
(
getParentObject
());
if
(
!
role
)
{
uError
()
<<
"no valid parent object"
;
return
-
1
;
}
QString
multi
=
role
->
multiplicity
();
// ush. IF we had a multiplicty object, this would be much easier.
if
(
!
multi
.
isEmpty
())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment