Bug 215945 [OLE] NullPointerException when saving an ole document
Build ID: Build id: I20071213-1700 Steps To Reproduce: 1. Open excel document with File/Open file... 2. Save excel document with File/Save 3. NullPointer Exception More information: Also Problem with "Save As": no FileDialog appears, no save is done.
bundles/org.eclipse.ui.win32/src/org/eclipse/ui/internal/editorsupport/win32/OleEditor.java
* @param newFile The file to get the new contents from.
     */
    private void sourceChanged(IFile newFile) {
        FileEditorInput newInput = new FileEditorInput(newFile);
        setInputWithNotify(newInput);
        sourceChanged = true;
        setPartName(newInput.getName());
    }
    /* 
     * See IEditorPart.isSaveOnCloseNeeded() 
     */
    public boolean isSaveOnCloseNeeded() {
        return !sourceDeleted && super.isSaveOnCloseNeeded();
    }
    /**
     * Posts the update code "behind" the running operation.
     *
     * @param runnable the update code
     */
    private void update(Runnable runnable) {
        IWorkbench workbench = PlatformUI.getWorkbench();
        IWorkbenchWindow[] windows = workbench.getWorkbenchWindows();
        if (windows != null && windows.length > 0) {
            Display display = windows[0].getShell().getDisplay();
            display.asyncExec(runnable);
        } else
            runnable.run();
    }
}