Author: mreutegg Date: Mon Jul 7 13:56:56 2014 New Revision: 1608464 URL: http://svn.apache.org/r1608464 Log: OAK-1953: Oak console on MongoMK fails with NPE
Change console default value for clusterId from 1 to 0 (automatic). Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/console/Console.java Modified: jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/console/Console.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/console/Console.java?rev=1608464&r1=1608463&r2=1608464&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/console/Console.java (original) +++ jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/console/Console.java Mon Jul 7 13:56:56 2014 @@ -42,7 +42,7 @@ public class Console { public static void main(String[] args) throws Exception { OptionParser parser = new OptionParser(); OptionSpec<Integer> clusterId = parser.accepts("clusterId", "MongoMK clusterId") - .withRequiredArg().ofType(Integer.class).defaultsTo(1); + .withRequiredArg().ofType(Integer.class).defaultsTo(0); OptionSpec quiet = parser.accepts("quiet", "be less chatty"); OptionSpec shell = parser.accepts("shell", "run the shell after executing files"); OptionSpec help = parser.acceptsAll(asList("h", "?", "help"), "show help").forHelp();