]
Steven Hawkins updated TEIID-3297:
----------------------------------
Fix Version/s: (was: 8.10)
Possible NPE in WSConnectionImpl
--------------------------------
Key: TEIID-3297
URL:
https://issues.jboss.org/browse/TEIID-3297
Project: Teiid
Issue Type: Bug
Components: Misc. Connectors
Affects Versions: 8.4
Reporter: Ramesh Reddy
Assignee: Ramesh Reddy
{code}
ArrayList contentTypes = (ArrayList)this.responseContext.get("content-type");
//$NON-NLS-1$
String contentType = contentTypes != null ?
(String)contentTypes.get(0):"application/octet-stream"; //$NON-NLS-1$
{code}
Looking at
http://stackoverflow.com/questions/20392345/is-content-type-http-header-a... it
is not always required but recommended. In the DV it is more required because, based on
this it will to build the object of that type. What is missing is NPE handling there.