Bug 53201 NPE when re-running newly generated javadoc.xml
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javadocexport/JavadocOptionsManager.java
for (int i= 0; i < vmArgsArray.length; i++) {
					vmArgs.add(vmArgsArray[i]);
				}
				
				String[] argsArray= tokens.getProgramArgumentsArray();
				for (int i= 0; i < argsArray.length; i++) {
					toolArgs.add(argsArray[i]);
				}
			}
			for (int i= 0; i < fHRefs.length; i++) {
				toolArgs.add("-link"); 
				toolArgs.add(fHRefs[i]);
			}
		} 
		if (fOverview.length() != 0) { 
			toolArgs.add("-overview"); 
			toolArgs.add(fOverview);
		}
		for (int i= 0; i < fSelectedElements.length; i++) {
			IJavaElement curr= fSelectedElements[i];
			if (curr instanceof IPackageFragment) {
				toolArgs.add(curr.getElementName());
			} else if (curr instanceof ICompilationUnit) {
				IPath p= curr.getResource().getLocation();
				if (p != null)
					toolArgs.add(p.toOSString());
			}
		}
	}
	public void createXML(IJavaProject[] projects) throws CoreException {