File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-tx/src/main/java/org/springframework/transaction/interceptor Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2013 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -111,10 +111,10 @@ protected static TransactionInfo currentTransactionInfo() throws NoTransactionEx
111
111
*/
112
112
public static TransactionStatus currentTransactionStatus () throws NoTransactionException {
113
113
TransactionInfo info = currentTransactionInfo ();
114
- if (info == null ) {
114
+ if (info == null || info . transactionStatus == null ) {
115
115
throw new NoTransactionException ("No transaction aspect-managed TransactionStatus in scope" );
116
116
}
117
- return currentTransactionInfo () .transactionStatus ;
117
+ return info .transactionStatus ;
118
118
}
119
119
120
120
You can’t perform that action at this time.
0 commit comments