|
|
|
|
Re: Broken popup menu with compatibility layer [message #1359870 is a reply to message #1359336] |
Fri, 16 May 2014 14:48 |
Karl Puperze Messages: 36 Registered: August 2011 |
Member |
|
|
I did a little debugging! The dynamic menu contribution has a visible when condition. The PopupMenuExtender tries to fill this menu contribution before the visible when condition gets evaluated. In this case the implementing class is expecting something different and therefore throws a NullPointerException. In eclipse 3.x it was handled differently. The visible when condition was evaluated first and in this case the getContributionItems method was never called and never threw an exception. Is the new handling implemented on purpose or is it a bug? When handling changed I need to review all my dynamic menu contribution implementations and make them more failsafe.
By the way: You see the NullPointerException only with activated trace options!
[Updated on: Fri, 16 May 2014 14:49] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.04767 seconds