FLY42 - Save as generates NPE.
Stepping throught the Fluency code revealed that the exception is thrown in LayoutEditor::doSaveAs() at
Shell shell = getSite().getWorkbenchWindow().getShell();
shell.open();
SaveAsDialog dialog = new SaveAsDialog(shell);
dialog.setOriginalFile(((IFileEditorInput) getEditorInput()).getFile());
=> dialog.open();
SaveAsDialog is an Eclipse UI class in package org.eclipse.ui.dialogs. Further stepping through this deep into the Eclipse code revealsed the following:
In WorkbenchImages::getImageDescriptor(), its trying to find the image corresponding to IMG_DLGBAN_SAVEAS_DLG symbolic name, which does not exist.
Since all these constants (e.g., IMG_DLGBAN_SAVEAS_DLG) should be defined in Eclipse classes, I am not sure why this does not exist.
Comments (1)
Nov 09, 2005
whoknows says:
weird. maybe the error is really that the constant exists but the image it refer...weird. maybe the error is really that the constant exists but the image it references hasn't loaded?