package net.winstone;

import java.io.IOException;

import net.winstone.boot.BootStrap;

/**
 * Utility to start winstone.
 * 
 * @author <a href="mailto:jguibert@intelligents-ia.com" >Jerome Guibert</a>
 */
public class Winstone {

	/**
	 * Main methods.
	 * 
	 * @param args
	 * @throws IOException
	 *             if something is wrong when reading properties files.
	 */
	public static void main(final String[] args) {
		final BootStrap bootStrap = new BootStrap(args);
		final Server server = bootStrap.boot();
		server.start();
	}
}

@@ -509,16 +509,41 @@
 boot();%0A
+%09%09if (server != null) %7B%0A%09
 %09%09server
@@ -552,13 +552,17 @@
 tart();%0A
+%09%09%7D%0A
 %09%7D%0A%7D%0A

FIx issue 11, NPE when no server instance on boot