Hello. I trying to implement EntitySnapshotAPI to my app and was really surprised that entityServiceAPI getSnapshots() doesn’t work. I wanna track object changes placed on screen and every time i get
java.lang.NullPointerException: null. Help some one to understand this?
`
@Override
public void createMonitoringRouteSnapshot(MonitoringRoute monitoringRoute) {
LOGGER.info(String.format(MessageUtils.CREATE_MONITORING_ROUTE_SNAPSHOT_MESSAGE, monitoringRoute.getId()));
if (monitoringRoute != null)
entitySnapshotAPI.createSnapshot(monitoringRoute, getView());
entitySnapshotAPI.getSnapshots(getMetaClass(), monitoringRoute.getUuid()); //throws null pointer
}
private MetaClass getMetaClass() {
return metadata.getClass(MONITORING_ROUTE_ENTITY_NAME);
}
private View getView() {
return viewRepository.getView(MonitoringRoute.class, MONITORING_ROUTE_VIEW_NAME);
}
`