Skip to content

Commit

Permalink
fix coverity issue 1075810, dynamic_cast, re #11323
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Mar 11, 2015
1 parent 080e98a commit b9d77ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/MantidPlot/src/Graph.cpp
Expand Up @@ -5091,7 +5091,7 @@ void Graph::setIndexedColors()
continue;

PlotCurve *c = dynamic_cast<PlotCurve*>(it);
if (c->type() == ErrorBars)
if (c && c->type() == ErrorBars)
{
// QtiPlot: ErrorBarsCurve *er = (ErrorBarsCurve *) it;
QwtErrorPlotCurve *er = dynamic_cast<QwtErrorPlotCurve*>(it);
Expand Down

0 comments on commit b9d77ed

Please sign in to comment.