Bug 32687 NPE after apply preference changes
build rc1, linux-motif, red hat 8, ibm jre 1.3.1 sr2 I had made some changes in my preferences (editor background colour, etc) and hit Apply. Then afterwards I hit OK to close the Preferences dialog and got the following NPE: !ENTRY org.eclipse.ui 4 4 Feb 24, 2003 11:23:07.830 !MESSAGE Unhandled exception caught in event loop. Unhandled exception caught in event loop. Reason: !ENTRY org.eclipse.ui 4 0 Feb 24, 2003 11:23:08.123 !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.swt.widgets.Display.showToolTip(Display.java:2074) at org.eclipse.swt.widgets.Control.hoverProc(Control.java:993) at org.eclipse.swt.widgets.Control.hoverProc(Control.java:989) at org.eclipse.swt.widgets.Display.mouseHoverProc(Display.java:1555) at org.eclipse.swt.internal.motif.OS.XtAppNextEvent(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1254) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:247) at org.eclipse.core.launcher.Main.run(Main.java:703) at org.eclipse.core.launcher.Main.main(Main.java:539) java.lang.NullPointerException
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPVariableElementLabelProvider.java
return null;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.IColorProvider#getBackground(java.lang.Object)
	 */
	public Color getBackground(Object element) {
		if (element instanceof CPVariableElement) {
			CPVariableElement curr= (CPVariableElement) element;
			if (!fShowResolvedVariables && curr.isReserved()) {
				if (fResolvedBackground == null) {
					Display display= Display.getCurrent();
					fResolvedBackground= display.getSystemColor(SWT.COLOR_INFO_BACKGROUND);
				}
				return fResolvedBackground;
			}
		}
		return null;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.jface.viewers.IBaseLabelProvider#dispose()
	 */
	public void dispose() {
		if (fResolvedBackground != null) {
			fResolvedBackground.dispose();
			fResolvedBackground= null;
		}
		super.dispose();
	}
}