Commit 81b91235 authored by Adrian Negru's avatar Adrian Negru
Browse files

fix null pointer exception

parent a97c4bcd
......@@ -65,7 +65,7 @@ public class PFNData {
*/
public String toCSV() {
final Collection<Object> values = data.values();
return values.stream().map(Object::toString).collect(Collectors.joining(","));
return values.stream().map(value -> value == null ? "null" : value.toString()).collect(Collectors.joining(","));
}
/**
......
......@@ -565,7 +565,7 @@ public class SEFileCrawler {
pfns.add(pfnData.toJSON());
}
catch (final Exception e) {
logger.info("Cannot convert to CSV " + e.getMessage());
logger.info("Cannot convert to JSON " + e.getMessage());
e.printStackTrace();
}
}
......
Supports Markdown
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