Skip to content

Commit

Permalink
SCUFL2-97 Avoid propertyResource being set to null (who does that?)
Browse files Browse the repository at this point in the history
  • Loading branch information
stain committed Apr 23, 2013
1 parent 0bbd7b0 commit 43d0edd
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -182,14 +182,20 @@ public void setParent(Profile parent) {
}

/**
* Se the underlying {@link PropertyResource} which contains the properties set by this
* configuration.
* Set the underlying {@link PropertyResource} which contains the properties
* set by this configuration.
* <p>
* If the provided PropertyResource is <code>null</code>, a new, blank
* PropertyResource will be set instead.
*
* @param propertyResource
* the underlying <code>PropertyResource</code> which contains the properties set by
* this configuration
* the underlying <code>PropertyResource</code> which contains
* the properties set by this configuration.
*/
public void setPropertyResource(PropertyResource propertyResource) {
if (propertyResource == null) {
this.propertyResource = new PropertyResource();
}
this.propertyResource = propertyResource;
}

Expand Down

0 comments on commit 43d0edd

Please sign in to comment.