null safe
parent
db2574ab53
commit
020b410ffe
|
@ -19,6 +19,9 @@ public abstract class MITREidDataServiceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Date utcToDate(String value) {
|
protected Date utcToDate(String value) {
|
||||||
|
if (value == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
return dateFormatter.parse(value, Locale.ENGLISH);
|
return dateFormatter.parse(value, Locale.ENGLISH);
|
||||||
} catch (ParseException ex) {
|
} catch (ParseException ex) {
|
||||||
|
|
Loading…
Reference in New Issue