if (svnResource.isManaged() && !(svnResource.getBaseResource().getUrl() == null)) { property = svnResource.getSvnProperty("bugtraq:message"); labelProperty = svnResource.getSvnProperty("bugtraq:label");
if (svnResource != null && svnResource.isManaged()) { try { property = svnResource.getSvnProperty("bugtraq:message"); labelProperty = svnResource.getSvnProperty("bugtraq:label"); } catch (SVNException e) { }
    public static ProjectProperties getProjectProperties(IResource resource) throws SVNException {        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);        ISVNProperty property = null;        ISVNProperty labelProperty = null;        if (svnResource.isManaged() && !(svnResource.getBaseResource().getUrl() == null)) {            property = svnResource.getSvnProperty("bugtraq:message"); //$NON-NLS-1$            labelProperty = svnResource.getSvnProperty("bugtraq:label"); //$NON-NLS-1$        }        if ((property != null) && (property.getValue() != null) && (property.getValue().trim().length() > 0)) {            ProjectProperties projectProperties = new ProjectProperties();            projectProperties.setMessage(property.getValue());            if ((labelProperty != null) && (labelProperty.getValue() != null) && (labelProperty.getValue().trim().length() != 0)) projectProperties.setLabel(labelProperty.getValue());            property = svnResource.getSvnProperty("bugtraq:url"); //$NON-NLS-1$            if (property != null) projectProperties.setUrl(property.getValue());             property = svnResource.getSvnProperty("bugtraq:number"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setNumber(property.getValue().equalsIgnoreCase("true")); //$NON-NLS-1$              property = svnResource.getSvnProperty("bugtraq:warnifnoissue"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setWarnIfNoIssue(property.getValue().equalsIgnoreCase("true")); //$NON-NLS-1$               property = svnResource.getSvnProperty("bugtraq:append"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setAppend(property.getValue().equalsIgnoreCase("true")); //$NON-NLS-1$                                               return projectProperties;                   }        IResource checkResource = resource;        while (checkResource.getParent() != null) {            checkResource = checkResource.getParent();            if (checkResource.getParent() == null) return null;            try {	            svnResource = SVNWorkspaceRoot.getSVNResourceFor(checkResource);	            if (svnResource.isManaged())	                property = svnResource.getSvnProperty("bugtraq:message"); //$NON-NLS-1$	            if (property != null) return getProjectProperties(checkResource);            } catch (SVNException e) {            }        }        return null;    }