Commit 189ba064 by Shwetha G S

Merge pull request #140 from shwethags/stringval

fixed string attribute validation
parents 1a7dba9f 70344bb5
......@@ -185,6 +185,7 @@ public class GraphBackedMetadataRepository implements MetadataRepository {
}
@Override
@GraphTransaction
public List<String> getEntityList(String entityType) throws RepositoryException {
LOG.info("Retrieving entity list for type={}", entityType);
GraphQuery query = titanGraph.query()
......
......@@ -456,7 +456,7 @@ public class DataTypes {
@Override
public String convert(Object val, Multiplicity m) throws MetadataException {
if (StringUtils.isNotBlank((CharSequence) val)) {
if (val != null && (!(val instanceof String) || StringUtils.isNotBlank((CharSequence) val))) {
return val.toString();
}
return convertNull(m);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment