From 18fb999087a4ebe38420d28dee478ac2b24e44a9 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 5 Feb 2007 21:44:30 +0000 Subject: Fix NPE in builder. --- .../com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/amazon/carbonado') diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java index 98c1008..3909eb1 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java @@ -116,7 +116,8 @@ public class LoggingRepositoryBuilder extends AbstractRepositoryBuilder { } public boolean isMaster() { - return mMaster; + return mMaster != null ? mMaster + : (mRepoBuilder != null ? mRepoBuilder.isMaster() : false); } /** -- cgit v1.2.3