fix the NPE when there is no fusion table exists
This commit is contained in:
parent
ac57eb813e
commit
cf573f37de
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user