Bug 19045 Not Present exception: when changing the output folder
1) create a JUnit project with a src and bin folder 2) open properties on the project 3) rename bin->bin2 ->get the following not present exception org.eclipse.core.internal.resources.ResourceException: Resource /junit/bin3/junit does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:179) at org.eclipse.core.internal.resources.Container.members (Container.java:177) at org.eclipse.core.internal.resources.Container.members (Container.java:160) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.removeOldClassfil es(BuildPathsBlock.java:721) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.removeOldClassfil es(BuildPathsBlock.java:723) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.internalConfigure JavaProject(BuildPathsBlock.java:656) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.configureJavaProj ect(BuildPathsBlock.java:631) at org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage$1.run (BuildPathsPropertyPage.java:132) at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute (WorkspaceModifyDelegatingOperation.java:39) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run (WorkspaceModifyOperation.java:64) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1361) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:299) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage.performOk (BuildPathsPropertyPage.java:140) at org.eclipse.jface.preference.PreferenceDialog.okPressed (PreferenceDialog.java:577) at org.eclipse.jface.preference.PreferenceDialog.buttonPressed (PreferenceDialog.java:176) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.jface.window.Window.runEventLoop(Window.java:558) at org.eclipse.jface.window.Window.open(Window.java:538) at org.eclipse.ui.dialogs.PropertyDialogAction.run (PropertyDialogAction.java:159) at org.eclipse.jface.action.Action.runWithEvent(Action.java:749) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:244) at org.eclipse.core.launcher.Main.run(Main.java:693) at org.eclipse.core.launcher.Main.main(Main.java:526) !ENTRY org.eclipse.core.resources 4 368 Jun 04, 2002 16:02:11.183 !MESSAGE Resource /junit/bin3/junit does not exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
/**
	 * Initializes the classpath for the given project. Multiple calls to init are allowed,
	 * but all existing settings will be cleared and replace by the given or default paths.
	 * @param project The java project to configure. Does not have to exist.
	 * @param outputLocation The output location to be set in the page. If <code>null</code>
	 * is passed, jdt default settings are used, or - if the project is an existing Java project- the
	 * output location of the existing project 
	 * @param classpathEntries The classpath entries to be set in the page. If <code>null</code>
	 * is passed, jdt default settings are used, or - if the project is an existing Java project - the
	 * classpath entries of the existing project
	 */	
	public void init(IJavaProject jproject, IPath outputLocation, IClasspathEntry[] classpathEntries) {
		fCurrJProject= jproject;
		boolean projectExists= false;
		List newClassPath= null;
		try {
			IProject project= fCurrJProject.getProject();
			projectExists= (project.exists() && project.getFile(".classpath").exists()); 
			if  (projectExists) {
				if (outputLocation == null) {
					outputLocation=  fCurrJProject.getOutputLocation();
				}
				if (classpathEntries == null) {
					classpathEntries=  fCurrJProject.getRawClasspath();
				}
			}
			if (outputLocation == null) {
				outputLocation= getDefaultBuildPath(jproject);
			}			
			if (classpathEntries != null) {