preview stage won't have the metadata populated, so protect NPE
This commit is contained in:
parent
ae9e0af8b9
commit
ffbc6879ce
@ -180,7 +180,9 @@ public class GetRowsCommand extends Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// metadata refresh for row mode and record mode
|
// metadata refresh for row mode and record mode
|
||||||
|
if (project.getMetadata() != null) {
|
||||||
project.getMetadata().setRowCount(project.rows.size());
|
project.getMetadata().setRowCount(project.rows.size());
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
respondException(response, e);
|
respondException(response, e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user