Bug 41901 NPE upon startup
Build: I-20030820 Upon startup, I found about the NPE pasted below was logged 12 times. Error Aug 24, 2003 12:59:06.784 An internal error occurred during: "Open Progress View". java.lang.NullPointerException at org.eclipse.swt.widgets.Display.asyncExec(Display.java:461) at org.eclipse.ui.progress.UIJob.run(UIJob.java:73) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:61)
bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/markers/internal/MarkerView.java
return null;
	}
	
	/**
	 * @param part
	 * @param selection
	 */
	protected void focusSelectionChanged(IWorkbenchPart part, ISelection selection) {
		List resources = new ArrayList();
		if (part instanceof IEditorPart) {
			IEditorInput input = ((IEditorPart) part).getEditorInput();
			if (input instanceof FileEditorInput) {
				resources.add(((FileEditorInput) input).getFile());
			}
		}
		else {
			if (selection instanceof IStructuredSelection) {
				for (Iterator iterator = ((IStructuredSelection) selection).iterator(); iterator.hasNext();) {
					Object object = iterator.next();
					if (object instanceof IAdaptable) {
						ITaskListResourceAdapter taskListResourceAdapter;
						Object adapter =
							((IAdaptable) object).getAdapter(
								ITaskListResourceAdapter.class);
						if (adapter != null
							&& adapter instanceof ITaskListResourceAdapter) {
							taskListResourceAdapter =
								(ITaskListResourceAdapter) adapter;
						} else {
							taskListResourceAdapter =