Skip to content

Commit

Permalink
TEIIDDES-2769 added null check for grantAll Boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
blafond committed Feb 9, 2016
1 parent b975dce commit c31c102
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class DataRole extends VdbUnit {
*/

// grant-all is an attribute associated with a data role in the vdb.xml definition
private Boolean grantAll;
private Boolean grantAll = Boolean.FALSE;

private Set<String> roleNames;

Expand Down Expand Up @@ -111,7 +111,7 @@ public DataRole(final DataRoleElement element) {
this(element.getName());
setAnyAuthenticated(element.isAnyAuthenticated());
setAllowCreateTempTables(element.allowCreateTempTables());
setGrantAll(element.doGrantAll());
setGrantAll(element.doGrantAll() == null ? Boolean.FALSE : element.doGrantAll());
setDescription(element.getDescription() == null ? EMPTY_STRING : element.getDescription());
setRoleNames(element.getMappedRoleNames());

Expand Down

0 comments on commit c31c102

Please sign in to comment.