[ https://issues.apache.org/jira/browse/SQOOP-3250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh updated SQOOP-3250: --------------------------------------- Description: There are a bunch of potential IndexOutOfBoundsException exceptions in SqoopClient, caused by returning .get(0) on a list which could potentially be empty. In particular, there is a problem with reading a Job, if the caller does not have the permission to read the given Job. Previous Sqoop versions returned an exception, but 1.99.7 returns an empty list, leading to a NPE. was: There are a bunch of potential NPEs in SqoopClient, caused by returning .get(0) on a list which could potentially be empty. In particular, there is a problem with reading a Job, if the caller does not have the permission to read the given Job. Previous Sqoop versions returned an exception, but 1.99.7 returns an empty list, leading to a NPE. > IndexOutOfBoundsException exceptions in SqoopClient > --------------------------------------------------- > > Key: SQOOP-3250 > URL: https://issues.apache.org/jira/browse/SQOOP-3250 > Project: Sqoop > Issue Type: Bug > Components: sqoop2-client > Affects Versions: 1.99.7 > Reporter: Colm O hEigeartaigh > Priority: Major > Fix For: 1.99.8 > > Attachments: SQOOP-3250.patch > > > There are a bunch of potential IndexOutOfBoundsException exceptions in > SqoopClient, caused by returning .get(0) on a list which could potentially be > empty. > In particular, there is a problem with reading a Job, if the caller does not > have the permission to read the given Job. Previous Sqoop versions returned > an exception, but 1.99.7 returns an empty list, leading to a NPE. -- This message was sent by Atlassian JIRA (v6.4.14#64029)