if ((property == null) || (property.getValue() == null)) projectProperties.setNumber(false); else projectProperties.setNumber(property.getValue().equalsIgnoreCase("true"));
if ((property != null) && (property.getValue() != null)) projectProperties.setNumber(property.getValue().equalsIgnoreCase("true"));
    public static ProjectProperties getProjectProperties(IResource resource) throws SVNException {        ISVNLocalResource svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);        ISVNProperty property = svnResource.getSvnProperty("bugtraq:message"); //$NON-NLS-1$        if (property != null) {            String value = property.getValue();            ProjectProperties projectProperties = new ProjectProperties();            if (value == null) projectProperties.setMessage("Reference: %BUGID%"); //$NON-NLS-1$            else projectProperties.setMessage(value);            property = svnResource.getSvnProperty("bugtraq:label"); //$NON-NLS-1$            if ((property == null) || (property.getValue() == null)) projectProperties.setLabel("Reference:"); //$NON-NLS-1$            else projectProperties.setLabel(property.getValue());            property = svnResource.getSvnProperty("bugtraq:url"); //$NON-NLS-1$            if ((property != null) && (property.getValue() != null)) projectProperties.setUrl(property.getValue());             property = svnResource.getSvnProperty("bugtraq:number"); //$NON-NLS-1$            if ((property == null) || (property.getValue() == null)) projectProperties.setNumber(false);            else 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(false);            else 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(true);            else 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;            svnResource = SVNWorkspaceRoot.getSVNResourceFor(checkResource);            property = svnResource.getSvnProperty("bugtraq:message"); //$NON-NLS-1$            if (property != null) return getProjectProperties(checkResource);        }        return null;    }