# Issues with getIconType

**URL:** https://discourse.paraview.org/t/issues-with-geticontype/16145
**Category:** Development
**Created:** [February 11, 2025, 6:25am UTC](https://discourse.paraview.org/t/issues-with-geticontype/16145 "2025-02-11T06:25:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![joint](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/dc4da7/32.png) [@joint](https://discourse.paraview.org/u/joint)
#### Post date: [February 11, 2025, 6:25am UTC](https://discourse.paraview.org/t/issues-with-geticontype/16145/1 "2025-02-11T06:25:21Z")

</div>

Hello

I hva a grievous problem

```auto
  QString getIconType(pqOutputPort* port) const
  {
    if (port->getSource()->property("INSITU_EXTRACT").toBool())
    {
      return PipelineModelIconType::INSITU_EXTRACT;
    }
    else if (port->getSourceProxy()->HasAnnotation("CINEMA"))
    {
      return PipelineModelIconType::CINEMA_MARK;
    }
    else if (pqLiveInsituManager::isWriterParametersProxy(port->getSourceProxy()))
    {
      return PipelineModelIconType::DATA_EXTRACTOR;
    }

    QString iconType =
      this->Controller->GetPipelineIcon(port->getSourceProxy(), port->getPortNumber());
    if (!iconType.isEmpty())
    {
      return iconType;
    }

    return PipelineModelIconType::GEOMETRY;
  }
};

```

Here port = nullptr, and I dont get what the hell is happening

To me, it seems like problem could be in XML only, since this is the only thing I edited since successful build and launch.  
What could be the trouble with XML?

Thanks
