Book a Demo

Author Topic: EA Version 13 Beta - EA-GetMenuItems issue  (Read 4652 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
EA Version 13 Beta - EA-GetMenuItems issue
« 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
Models are great!
Correct models are even greater!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8098
  • Karma: +118/-20
    • View Profile
Re: EA Version 13 Beta - EA-GetMenuItems issue
« Reply #1 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.

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: EA Version 13 Beta - EA-GetMenuItems issue
« Reply #2 on: July 08, 2016, 05:38:44 pm »
Thanks Simon, that's good to know

Phil
Models are great!
Correct models are even greater!