1.1 --- a/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java Mon Jan 21 00:45:35 2013 -0500 1.2 +++ b/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java Mon Jan 21 01:27:42 2013 -0500 1.3 @@ -154,10 +154,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;