SOLR-9536: OldBackupDirectory timestamp field needs to be initialized to avoid NPE.

This commit is contained in:
markrmiller 2016-10-25 12:39:37 -04:00
parent 27ba8e2e82
commit e152575f5e
2 changed files with 4 additions and 1 deletions

View File

@ -214,6 +214,9 @@ Bug Fixes
* SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner. * SOLR-9441: Solr collection backup on HDFS can only be manipulated by the Solr process owner.
(Hrishikesh Gadre via Mark Miller) (Hrishikesh Gadre via Mark Miller)
* SOLR-9536: OldBackupDirectory timestamp field needs to be initialized to avoid NPE.
(Hrishikesh Gadre via Mark Miller)
Optimizations Optimizations
---------------------- ----------------------

View File

@ -32,7 +32,7 @@ class OldBackupDirectory implements Comparable<OldBackupDirectory> {
private URI basePath; private URI basePath;
private String dirName; private String dirName;
private Optional<Date> timestamp; private Optional<Date> timestamp = Optional.empty();
public OldBackupDirectory(URI basePath, String dirName) { public OldBackupDirectory(URI basePath, String dirName) {
this.dirName = Preconditions.checkNotNull(dirName); this.dirName = Preconditions.checkNotNull(dirName);