if (syncInfo.getRemoteResourceStatus().getTextStatus() == SVNStatusKind.DELETED) {
if (syncInfo.getRemoteResourceStatus() != null && syncInfo.getRemoteResourceStatus().getTextStatus() == SVNStatusKind.DELETED) {
	protected void run(SVNTeamProvider provider, SyncInfoSet set, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {		IResource[] resourceArray = trimResources(extractResources(resources, set));		SVNRevision revision = null;		SyncInfo[] syncInfos = set.getSyncInfos();		boolean containsDeletes = false;		for (int i = 0; i < syncInfos.length; i++) {			SVNStatusSyncInfo syncInfo = (SVNStatusSyncInfo)syncInfos[i];			IResourceVariant remote = syncInfo.getRemote();			if (remote != null && remote instanceof ISVNRemoteResource) {				if (syncInfo.getRemoteResourceStatus().getTextStatus() == SVNStatusKind.DELETED) {					containsDeletes = true;					continue;				} 				SVNRevision rev = ((ISVNRemoteResource)remote).getLastChangedRevision();				if (rev instanceof SVNRevision.Number) {					long nbr = ((SVNRevision.Number)rev).getNumber();					if (revision == null) revision = rev;					else {						long revisionNumber = ((SVNRevision.Number)revision).getNumber();						if (nbr > revisionNumber) revision = rev;					}				}			}		}		if (revision == null || containsDeletes) revision = SVNRevision.HEAD;		new UpdateOperation(getPart(), resourceArray, revision, true).run();	}