if (resource == null) {
if (resource == null || resource.isContainer()) {
	public InputStream getContents() throws CoreException {		if (resource == null) {			return null;		}		try {			final InputStream[] holder = new InputStream[1];			SVNUIPlugin.runWithProgress(null, true,					new IRunnableWithProgress() {						public void run(IProgressMonitor monitor) {							try {								holder[0] = ((IResourceVariant) resource)										.getStorage(monitor).getContents();							} catch (CoreException e1) {								SVNUIPlugin.log(e1);							}						}					});			return holder[0];		} catch (InterruptedException e) {			// operation canceled		} catch (InvocationTargetException e) {			Throwable t = e.getTargetException();			if (t instanceof TeamException) {				throw new CoreException(((TeamException) t).getStatus());			}			// should not get here		}		return new ByteArrayInputStream(new byte[0]);	}