Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-6065

HelpTool F1 with no focused tool nor tooltip opened may lead to NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • None
    • None
    • None

      Concerning Ametys.plugins.cms.help.HelpTool#openTool, I think if no tool is opened and no tooltip is opened, you will get an NPE here

      			if (qt && qt.isVisible())
      			{
      				helpId = qt.activeTarget.helpId;
      			}
      			else
      			{
      				ft = Ametys.tool.ToolsManager.getFocusedTool();
      				helpId = ft.getToolHelpId();
      			}
      

      even if the end of the code can handle a null helpId

            trizzi Thibaut Rizzi (Inactive)
            raphael Raphaƫl Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: