1.1 --- a/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java Thu Feb 21 12:23:27 2013 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java Thu Feb 21 17:49:56 2013 -0800 1.3 @@ -158,10 +158,11 @@ 1.4 throw new IllegalStateException(); 1.5 } else { 1.6 initContext(); 1.7 + compilerMain.log = Log.instance(context); 1.8 compilerMain.setOptions(Options.instance(context)); 1.9 compilerMain.filenames = new LinkedHashSet<File>(); 1.10 Collection<File> filenames = compilerMain.processArgs(CommandLine.parse(args), classNames); 1.11 - if (!filenames.isEmpty()) 1.12 + if (filenames != null && !filenames.isEmpty()) 1.13 throw new IllegalArgumentException("Malformed arguments " + toString(filenames, " ")); 1.14 compiler = JavaCompiler.instance(context); 1.15 compiler.keepComments = true;