Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » OperationHistoryActionHandler AssertionFailedException: null argument
OperationHistoryActionHandler AssertionFailedException: null argument [message #331346] Tue, 02 September 2008 19:17 Go to next message
Eclipse UserFriend
Originally posted by: cagiva92.hotmail.com

Hi,

I'm getting an AssertionFailedException when the below code is called from
my dispose() method. Please let me know if you have any suggestion or if
you know why this is happening. Thanks in advance!

IUndoContext context = getUndoContext();
OperationHistoryFactory.getOperationHistory().dispose(contex t, true, true,
true);

--------
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)
at
org.eclipse.core.commands.operations.AbstractOperation.hasCo ntext(AbstractOperation.java:153)
at
org.eclipse.ui.operations.OperationHistoryActionHandler$Hist oryListener.historyNotification(OperationHistoryActionHandle r.java:130)
at
org.eclipse.core.commands.operations.DefaultOperationHistory $2.run(DefaultOperationHistory.java:929)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .notifyListeners(DefaultOperationHistory.java:918)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .notifyRemoved(DefaultOperationHistory.java:1042)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .internalRemove(DefaultOperationHistory.java:890)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .flushUndo(DefaultOperationHistory.java:624)
at
org.eclipse.core.commands.operations.DefaultOperationHistory .dispose(DefaultOperationHistory.java:328)
at abc.yxz.core.plan.Plan.dispose(Plan.java:209)
Re: OperationHistoryActionHandler AssertionFailedException: null argument [message #331365 is a reply to message #331346] Wed, 03 September 2008 16:54 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ben wrote:
> Hi,
>
> I'm getting an AssertionFailedException when the below code is called
> from my dispose() method. Please let me know if you have any suggestion
> or if you know why this is happening. Thanks in advance!
> IUndoContext context = getUndoContext();
> OperationHistoryFactory.getOperationHistory().dispose(contex t, true,
> true, true);

When you call dispose, you're destroying your applications operation
history. Set a breakpoint in the DefaultOperationHistory.dispose(*) to
find out where else it is being called from. If you are running the
workbench, WorkbenchOperationSupport disposes the operation history on
shutdown.


PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Mapping line numbers in an ISourceLookupParticipant
Next Topic:Classes in a jar within a plugin are not visible to other plugins
Goto Forum:
  


Current Time: Sun Nov 17 21:22:39 GMT 2024

Powered by FUDForum. Page generated in 0.03651 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top