Project: JDT
Bug 229052 [jar exporter] NPE for projects with external class folders
Reported: 2008-04-28 10:08:15 | Status: verified fixed

20080427-2000 - extract the attached zip at a external location - create a project with source - add an external classpath folder at the external location - run JAR exporter: NPE Caused by: java.lang.NullPointerException at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportElement(JarFileExportOperation.java:305) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportJavaElement(JarFileExportOperation.java:386) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportElement(JarFileExportOperation.java:292) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportJavaElement(JarFileExportOperation.java:386) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportElement(JarFileExportOperation.java:292) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportJavaElement(JarFileExportOperation.java:386) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportElement(JarFileExportOperation.java:292) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.exportSelectedElements(JarFileExportOperation.java:522) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.singleRun(JarFileExportOperation.java:902) at org.eclipse.jdt.internal.ui.jarpackager.JarFileExportOperation.execute(JarFileExportOperation.java:876) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:104) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:116) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:119)

Files changed in fix:
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/jarexport/PlainJarExportTests.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java