Skip to content

Commit

Permalink
Refs #6315. Fixing null proxy trap.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Reuter committed Jan 3, 2013
1 parent c148039 commit 1e845e0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,12 @@ void MdViewerWidget::renderAndFinalSetup()
void MdViewerWidget::checkForUpdates()
{
pqPipelineSource *src = pqActiveObjects::instance().activeSource();
vtkSMProxy *proxy = src->getProxy();
if (NULL == proxy)
if (NULL == src)
{
return;
}
vtkSMProxy *proxy = src->getProxy();

if (strcmp(proxy->GetXMLName(), "MDEWRebinningCutter") == 0)
{
this->currentView->resetDisplay();
Expand Down

0 comments on commit 1e845e0

Please sign in to comment.