[jbossts-issues] [JBoss JIRA] (JBTM-2857) Investigate XTS outbound bridge potential nullpointer issue

Ondra Chaloupka (JIRA) issues at jboss.org
Fri Feb 24 16:41:00 EST 2017


Ondra Chaloupka created JBTM-2857:
-------------------------------------

             Summary: Investigate XTS outbound bridge potential nullpointer issue
                 Key: JBTM-2857
                 URL: https://issues.jboss.org/browse/JBTM-2857
             Project: JBoss Transaction Manager
          Issue Type: Task
          Components: XTS
    Affects Versions: 5.5.2.Final
            Reporter: Ondra Chaloupka
            Assignee: Ondra Chaloupka
            Priority: Minor


During working on JBTM-2853 it was found `NullPointer` could be potentially thrown from `OutboundBridgeManager` when `getTransaction()` returns `null`. It's at time when thread is not associated with any txn.

Discussion about this at PR: https://github.com/jbosstm/narayana/pull/1133

```
Transaction transaction = (Transaction)TransactionManager.transactionManager().getTransaction();
```

https://github.com/jbosstm/narayana/blob/master/txbridge/src/main/java/org/jboss/jbossts/txbridge/outbound/OutboundBridgeManager.java#L69

Goal is to investigate this potential exception being trouble or not and if such thing could happen or not.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbossts-issues mailing list