AnsweredAssumed Answered

How to get ExecutionContext

Question asked by cookie-exploit on Aug 27, 2012
Latest reply on Feb 12, 2014 by trademak
Hello Guys,

I need to access the ExecutionContext, but if I try to get the context with:

Context.getExecutionContext()
I get an EmptyStackException. Then I debug it and saw that there could a problem in the
protected static <T> Stack<T> getStack(ThreadLocal<Stack<T>> threadLocal)

method. Because if the stack is null then a new Stack will created and then if the peack() method is calling an EmptyStackException will thrown.

How is it possible to get the ExecutionContext? Or isn't there anyway to do this?

Outcomes