Home › Forums › eaDocX queries › NullReferenceException with Model Views
Home › Forums › eaDocX queries › NullReferenceException with Model Views
- This topic has 3 replies, 2 voices, and was last updated 9 years, 5 months ago by Guillaume Finance.
-
AuthorPosts
-
2 July 2015 at 1:24 pm #8188Guillaume FinanceParticipant
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?
2 July 2015 at 1:31 pm #8189eadocX SupportParticipantI’ll have a look at this – not part of the standard regression test suite 🙁
2 July 2015 at 2:16 pm #8190eadocX SupportParticipantFixed in 3.6.2.5.
I commented-out some code with ”
“There is no test case which runs this bit..” – well, there is now!
Thanks2 July 2015 at 2:33 pm #8191Guillaume FinanceParticipantI 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. -
AuthorPosts
- You must be logged in to reply to this topic.
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