commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@apache.org>
Subject Re: Re: Javaflow: Bug in Continuation.getContext();?
Date Wed, 02 Aug 2006 22:29:11 GMT
> Here is the output if you uncomment the line thread.test():
> -----
> Exception in thread "main" java.lang.NullPointerException
>          at org.apache.commons.javaflow.Continuation.getContext
> (Continuation.java:73)
>          at Test.test(javaflowTest.java:11)
>          at javaflowTest.main(javaflowTest.java:23)
> -----

...because the "getContext" only works when you have a thread mapping.
This mapping only exists when the runnable is executed by
startWith/continueWith. It's not intended that you call such a
"special" runnable directly. I'll fix the NPE by throwing a more
expressive exception.

cheers
--
Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message