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
protected void setInputWithNotify(IEditorInput input) {
    	IPathEditorInput pathEditorInput = (IPathEditorInput)input.getAdapter(IPathEditorInput.class);
    	if (pathEditorInput != null)
    		source = new File(pathEditorInput.getPath().toOSString());
    	
        if (input instanceof IFileEditorInput) {
        	if (resource == null)
        		ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceListener);
        	resource = ((IFileEditorInput)input).getFile();
        } else if (resource != null) {
        	ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceListener);
        	resource = null;
        }
        
        super.setInputWithNotify(input);
    }
    /**
     * See if it is one of the known types that use OLE Storage.
     * @param progID the type to test
     * @return <code>true</code> if it is one of the known types
     */
    private static boolean usesStorageFiles(String progID) {
        return (progID != null && (progID.startsWith("Word.", 0) 
                || progID.startsWith("MSGraph", 0) 
                || progID.startsWith("PowerPoint", 0) 
        || progID.startsWith("Excel", 0))); 
    }
    /**
     * The source has changed to the newFile. Update
     * editors and set any required flags