Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: philchudley on July 08, 2016, 01:01:51 am

Title: EA Version 13 Beta - EA-GetMenuItems issue
Post by: philchudley on July 08, 2016, 01:01:51 am
Here's a good one for you EA guys.

I have two EA Extensions which when used with EA version 13 Beta, are placed on the Extend ribbon. One extension works just fine, the other threw a null pointer exception and caused EA to crash when the extension was selected on its ribbon entry.

The exception was being thrown in the event EA_GetMenuItems.

Upon some investigation I discovered what the problem was. It was due to the value in the parameter menuLocation

When the extension was clicked on its ribbon, the value returned in menuLocation is Diagram ... :-[ and of course as there is no repository open let alone any diagram, its not surprising I get a null pointer!

Surely, when selecting an Extension from the Ribbon, I would expect the menuLocation to be MainMenu (or even a new value Ribbon), but Diagram? No way.

Worked around it now, but thought you like to know in case the same problem occurs in your extensions in EA version 13.

Cheers

Phil
Title: Re: EA Version 13 Beta - EA-GetMenuItems issue
Post by: Eve on July 08, 2016, 08:23:49 am
Yes, we have had reports about the menu location. I believe it is fixed1 for the next beta.

1 The menuLocation used is MainMenu, as we believed this was less likely to cause issues rather than a new type.
Title: Re: EA Version 13 Beta - EA-GetMenuItems issue
Post by: philchudley on July 08, 2016, 05:38:44 pm
Thanks Simon, that's good to know

Phil