- check obj.isPresent() in method processInput
- return Optional.empty instead of null in method createPropertiesObject
Issue-ID: AAI-2934
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: Iebe0184ce39f244dd56e6861617cbf4e5dafb06c
json.addProperty(prop.key(), gson.toJson(prop.value()));
} else {
// throw exception?
json.addProperty(prop.key(), gson.toJson(prop.value()));
} else {
// throw exception?
+ return Optional.empty();
json.add(inner);
} else {
Optional<JsonObject> obj = this.getJsonFromVertex((Vertex)l, properties);
json.add(inner);
} else {
Optional<JsonObject> obj = this.getJsonFromVertex((Vertex)l, properties);
+ if(obj.isPresent()) json.add(obj.get());
}
}
return Optional.of(json);
}
}
return Optional.of(json);