[teiid-issues] [JBoss JIRA] (TEIID-3297) Possible NPE in WSConnectionImpl

Steven Hawkins (JIRA) issues at jboss.org
Thu Mar 5 10:38:51 EST 2015


     [ https://issues.jboss.org/browse/TEIID-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins closed TEIID-3297.
---------------------------------


> 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-always-required 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.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the teiid-issues mailing list