Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
JAliEn
JAliEn
Commits
81b91235
Commit
81b91235
authored
Apr 13, 2021
by
Adrian Negru
Browse files
fix null pointer exception
parent
a97c4bcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/utils/crawler/PFNData.java
View file @
81b91235
...
...
@@ -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
(
","
));
}
/**
...
...
src/main/java/utils/crawler/SEFileCrawler.java
View file @
81b91235
...
...
@@ -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
();
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment