[teiid-issues] [JBoss JIRA] (TEIID-3233) Getting NPE in test integration when calling AdminFactory.getDomainAwareList
Van Halbert (JIRA)
issues at jboss.org
Mon Nov 24 14:02:39 EST 2014
[ https://issues.jboss.org/browse/TEIID-3233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on TEIID-3233 started by Van Halbert.
------------------------------------------
> Getting NPE in test integration when calling AdminFactory.getDomainAwareList
> ----------------------------------------------------------------------------
>
> Key: TEIID-3233
> URL: https://issues.jboss.org/browse/TEIID-3233
> Project: Teiid
> Issue Type: Bug
> Components: Server
> Affects Versions: 8.7.1, 9.x
> Reporter: Van Halbert
> Assignee: Van Halbert
>
> When getVDB's is being called in AdminFactory, an NPE occurs. Here's the diff for the fix:
> try {
> ModelNode outcome = this.connection.execute(request);
> if (Util.isSuccess(outcome)) {
> - return getDomainAwareList(outcome, VDBMetadataMapper.INSTANCE);
> + List<VDBMetaData> list = getDomainAwareList(outcome, VDBMetadataMapper.INSTANCE);
> + if (list != null) {
> + return list;
> + }
> }
> } catch (IOException e) {
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the teiid-issues
mailing list