Merge "Add null check to SQLiteConnectionPool.dump()" into udc-dev
This commit is contained in:
@@ -1136,7 +1136,10 @@ public final class SQLiteConnectionPool implements Closeable {
|
|||||||
Printer indentedPrinter = PrefixPrinter.create(printer, " ");
|
Printer indentedPrinter = PrefixPrinter.create(printer, " ");
|
||||||
synchronized (mLock) {
|
synchronized (mLock) {
|
||||||
if (directories != null) {
|
if (directories != null) {
|
||||||
directories.add(new File(mConfiguration.path).getParent());
|
String parent = new File(mConfiguration.path).getParent();
|
||||||
|
if (parent != null) {
|
||||||
|
directories.add(parent);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
boolean isCompatibilityWalEnabled = mConfiguration.isLegacyCompatibilityWalEnabled();
|
boolean isCompatibilityWalEnabled = mConfiguration.isLegacyCompatibilityWalEnabled();
|
||||||
printer.println("Connection pool for " + mConfiguration.path + ":");
|
printer.println("Connection pool for " + mConfiguration.path + ":");
|
||||||
|
|||||||
Reference in New Issue
Block a user