Skip to content
Permalink
Browse files
This NPE fix never got ported from the 2.2 branch
  • Loading branch information
djencks committed Sep 25, 2010
1 parent afcf0cd commit 0aa5544a7d0e4dae2bc58137cb15b4ab222d8d82
Showing 1 changed file with 6 additions and 4 deletions.
@@ -47,10 +47,12 @@ public RecoverTask(RetryScheduler retryScheduler, NamedXAResourceFactory namedXA
public void run() {
try {
NamedXAResource namedXAResource = namedXAResourceFactory.getNamedXAResource();
try {
recovery.recoverResourceManager(namedXAResource);
} finally {
namedXAResourceFactory.returnNamedXAResource(namedXAResource);
if (namedXAResource != null) {
try {
recovery.recoverResourceManager(namedXAResource);
} finally {
namedXAResourceFactory.returnNamedXAResource(namedXAResource);
}
}
return;
} catch (XAException e) {

0 comments on commit 0aa5544

Please sign in to comment.