NPE in connectorworkitem after close
------------------------------------
Key: TEIID-3612
URL:
https://issues.jboss.org/browse/TEIID-3612
Project: Teiid
Issue Type: Quality Risk
Components: Query Engine
Affects Versions: 8.7
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 8.12
An NPE can occur if the connectorworkitem has pending asynch more work that is cancelled,
but still runs. Then the logic to call close (which is added as a completion listener and
effectively executed immediately as the work will report isDone=true) can occur before the
pending call to next.
We should have an explicit check in more to prevent seeing the exception.