Products

Home Forums eaDocX queries NullReferenceException with Model Views

Home Forums eaDocX queries NullReferenceException with Model Views

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8188
    Guillaume Finance
    Participant

    I’m using the latest eaDocX with EA 12 on a local EAP file.
    I created a favorite views folder as described in the help to select specific packages & diagrams.

    Once I create a new section from this model view, I’m getting a .NET System.NullReferenceException:

    [code]System.NullReferenceException: La référence d’objet n’est pas définie à une instance d’un objet.
    à eaDocXAddIn.mvFavouritesNode..ctor(String aGUID, DGDocumentProfile p, eaDocXTreeNode parent, Int32 aHeadingLevel)
    à eaDocXAddIn.sectionNode.addmodelFavouritesNode()
    à eaDocXAddIn.sectionNode.addChildren()
    à eaDocXAddIn.cntlPreview.fillDocTree()
    à eaDocXAddIn.eaDocXMain.mnuMVItem_Click(Object sender, EventArgs e)
    à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    à System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    à System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    à System.Windows.Forms.Control.WndProc(Message& m)
    à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    à System.Windows.Forms.ToolStrip.WndProc(Message& m)
    à System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)[/code]

    I tried with packages only, with diagrams only, and with a mix of both and I always get the same exception. Is this a known issue?

    #8189
    eadocX Support
    Participant

    I’ll have a look at this – not part of the standard regression test suite 🙁

    #8190
    eadocX Support
    Participant

    Fixed in 3.6.2.5.
    I commented-out some code with ”
    “There is no test case which runs this bit..” – well, there is now!
    Thanks

    #8191
    Guillaume Finance
    Participant

    I downloaded and tried version 3.6.2.5.

    It almost works:
    – when I add a section from the model view, I’m getting the following exception message :

    [code]************** Texte de l’exception **************
    System.NullReferenceException: La référence d’objet n’est pas définie à une instance d’un objet.
    à eaDocXAddIn.mvFavouritesNode..ctor(String aGUID, DGDocumentProfile p, eaDocXTreeNode parent, Int32 aHeadingLevel)
    à eaDocXAddIn.sectionNode.addmodelFavouritesNode()
    à eaDocXAddIn.sectionNode.addChildren()
    à eaDocXAddIn.cntlPreview.fillDocTree()
    à eaDocXAddIn.eaDocXMain.mnuMVItem_Click(Object sender, EventArgs e)
    à System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    à System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    à System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    à System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    à System.Windows.Forms.Control.WndProc(Message& m)
    à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    à System.Windows.Forms.ToolStrip.WndProc(Message& m)
    à System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)[/code]

    – I then click on Continue -> my new section has been successfully created (e.g. Section 5) and I have an empty section as well named “Section1” (it appears in Orange).
    – If I delete Section1, it generates ok.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Compare licence prices

Choose the licence that’s right for you and your team

Prices

Download a free trial

Download eaTeamWorks today for several free for life features, plus no obligation, 30-day trials of all the products: eaDocX, ea Revision Manager, eaSheets, Model Expert and PortfolioManager. Discover for yourself why we sell the world’s best-selling Enterprise Architect extension.

Download