From c31c10237b25132bdd4b06899c4490cd5431f4b3 Mon Sep 17 00:00:00 2001 From: blafond Date: Tue, 9 Feb 2016 10:09:05 -0600 Subject: [PATCH] TEIIDDES-2769 added null check for grantAll Boolean --- .../src/org/teiid/designer/roles/DataRole.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/org.teiid.designer.vdb/src/org/teiid/designer/roles/DataRole.java b/plugins/org.teiid.designer.vdb/src/org/teiid/designer/roles/DataRole.java index d141c0f171..83419d4862 100644 --- a/plugins/org.teiid.designer.vdb/src/org/teiid/designer/roles/DataRole.java +++ b/plugins/org.teiid.designer.vdb/src/org/teiid/designer/roles/DataRole.java @@ -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 roleNames; @@ -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());