Bug 171262 [Dialogs] uncaught NPE in FilteredResourcesSelectionDialog
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java
}
		/*
		 * (non-Javadoc)
		 * 
		 * @see org.eclipse.core.resources.IResourceProxyVisitor#visit(org.eclipse.core.resources.IResourceProxy)
		 */
		public boolean visit(IResourceProxy proxy) {
			if (progressMonitor.isCanceled())
				return false;
			IResource resource = proxy.requestResource();
			if (this.projects.remove((resource.getProject()))
					|| this.projects.remove((resource))) {
				progressMonitor.worked(1);
			}
			contentProvider.add(resource, resourceFilter);
			if (resource.getType() == IResource.FOLDER && resource.isDerived()
					&& !resourceFilter.isShowDerived()) {
				return false;
			}
			if (resource.getType() == IResource.FILE) {
				return false;
			}
			return true;
		}
	}
	/**
	 * Filters resources using pattern and showDerived flag. It overrides
	 * ItemsFilter.
	 */
	protected class ResourceFilter extends ItemsFilter {