[jboss-svn-commits] JBL Code SVN: r18782 - labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mwlabs/wst/at/remote.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Mar 9 15:02:44 EDT 2008
Author: adinn
Date: 2008-03-09 15:02:43 -0400 (Sun, 09 Mar 2008)
New Revision: 18782
Modified:
labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mwlabs/wst/at/remote/UserTransactionImple.java
Log:
ensured remote UserTransactionImple throws UnknownTransactionException if the context manager says we are not in a TX -- WSTX tests found it was generating an NPE. fix for JBTM-339
Modified: labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mwlabs/wst/at/remote/UserTransactionImple.java
===================================================================
--- labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mwlabs/wst/at/remote/UserTransactionImple.java 2008-03-09 18:45:17 UTC (rev 18781)
+++ labs/jbosstm/trunk/XTS/WSTX/classes/com/arjuna/mwlabs/wst/at/remote/UserTransactionImple.java 2008-03-09 19:02:43 UTC (rev 18782)
@@ -252,7 +252,10 @@
try
{
ctx = (TxContextImple) _ctxManager.suspend();
- id = ctx.identifier();
+ if (ctx == null) {
+ throw new UnknownTransactionException();
+ }
+ id = ctx.identifier();
/*
* By default the completionParticipantURL won't be set for an interposed (imported)
More information about the jboss-svn-commits
mailing list