xdbFile is null check
This commit is contained in:
parent
c2a0a55005
commit
c68cc0097c
|
|
@ -66,7 +66,7 @@ public class Config {
|
|||
sb.append('{');
|
||||
sb.append("cache_policy:").append(cachePolicy).append(',');
|
||||
sb.append("version:").append(ipVersion.toString()).append(',');
|
||||
sb.append("xdb_path:").append(xdbFile.getAbsolutePath()).append(',');
|
||||
sb.append("xdb_path:").append(xdbFile == null ? "null" : xdbFile.getAbsolutePath()).append(',');
|
||||
sb.append("header:").append(header.toString()).append(',');
|
||||
if (vIndex == null) {
|
||||
sb.append("v_index: null, ");
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ public class Searcher {
|
|||
return String.format(
|
||||
"%s->{version:%s, xdb:%s, vIndex:%s, cBuffer:%s}",
|
||||
super.toString(),
|
||||
version.name, xdbFile.getAbsolutePath(),
|
||||
version.name, xdbFile == null ? "null" : xdbFile.getAbsolutePath(),
|
||||
vectorIndex == null ? "null" : String.valueOf(vectorIndex.length),
|
||||
contentBuff == null ? "null" : String.valueOf(contentBuff.length())
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue