fix the NPE when there is no fusion table exists

This commit is contained in:
Jacky 2018-03-06 18:16:29 -05:00
parent ac57eb813e
commit cf573f37de

View File

@ -146,7 +146,7 @@ public class GDataImportingController implements ImportingController {
Fusiontables.Table.List listTables = service.table().list(); Fusiontables.Table.List listTables = service.table().list();
TableList tablelist = listTables.execute(); TableList tablelist = listTables.execute();
if (tablelist == null) if (tablelist == null || tablelist.getItems() == null)
return; return;
for (Table table : tablelist.getItems()) { for (Table table : tablelist.getItems()) {