-
assigned issue to
Close multiple message option menus in MessageView view crash the app
Issue #306
resolved
- Go to the MessageView view
- Create at least 2 message between 2 Lifelines in order to get the option menu.
- You can close the last opened option menu but the others can't be closed and the app crashes if you try.
You get this exception :
Exception in thread "Animation Thread" java.lang.NullPointerException
at ca.mcgill.sel.ram.ui.views.message.MessageViewView.removeMessageView(MessageViewView.java:403)
at ca.mcgill.sel.ram.ui.views.message.MessageViewView.notifyChanged(MessageViewView.java:898)
at org.eclipse.emf.edit.provider.ChangeNotifier.fireNotifyChanged(ChangeNotifier.java:45)
at org.eclipse.emf.edit.provider.ItemProviderAdapter.fireNotifyChanged(ItemProviderAdapter.java:239)
at ca.mcgill.sel.ram.provider.InteractionItemProvider.notifyChanged(InteractionItemProvider.java:131)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
at org.eclipse.emf.common.notify.impl.NotifyingListImpl.remove(NotifyingListImpl.java:713)
at org.eclipse.emf.common.util.AbstractEList.remove(AbstractEList.java:462)
at ca.mcgill.sel.ram.ui.views.message.handler.impl.MessageViewHandler.revertTemporaryObjects(MessageViewHandler.java:370)
Screenshot :
Talking with Matthias, the problem should happen because of the view notification is disabled when adding a temporary object (option menu) in MessageViewHandler.
Comments (4)
-
Account Deleted reporter -
Account Deleted reporter - changed status to resolved
Resolve
#306: temporary notification activation with eSetDeliver() method in revertTemporaryObjects method of MessageViewHandler class→ <<cset b3c4528f148c>>
-
Account Deleted reporter References
#306: disabled notifications at the begining of the method instead of a temporary desactivation during the clear→ <<cset 574d43f33ee5>>
-
Account Deleted reporter References
#306: updated Checkstyle error→ <<cset 9b61c09893f0>>
- Log in to comment