Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
207
Issues
207
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
3ef1ce47
Commit
3ef1ce47
authored
May 11, 2015
by
Rashad Kanavath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
COV: missing null check after dynamic_cast
parent
0b7ddc4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Modules/Applications/AppImageUtils/app/otbExtractROI.cxx
Modules/Applications/AppImageUtils/app/otbExtractROI.cxx
+1
-1
No files found.
Modules/Applications/AppImageUtils/app/otbExtractROI.cxx
View file @
3ef1ce47
...
...
@@ -133,7 +133,7 @@ private:
unsigned
int
nbComponents
=
inImage
->
GetNumberOfComponentsPerPixel
();
ListViewParameter
*
clParam
=
dynamic_cast
<
ListViewParameter
*>
(
GetParameterByKey
(
"cl"
));
// Update the values of the channels to be selected if nbComponents is changed
if
(
clParam
->
GetNbChoices
()
!=
nbComponents
)
if
(
clParam
!=
NULL
&&
clParam
->
GetNbChoices
()
!=
nbComponents
)
{
ClearChoices
(
"cl"
);
...
...
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