Skip to content

Commit f8ec01a

Browse files
committed
Add check for a locked TableInfo
1 parent c6199ae commit f8ec01a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

LDK/src/org/labkey/ldk/query/DefaultTableCustomizer.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ public DefaultTableCustomizer(MultiValuedMap<String, String> props)
8383
@Override
8484
public void customize(TableInfo table)
8585
{
86+
if (table.isLocked())
87+
{
88+
_log.debug("DefaultTableCustomizer called on a locked table: " + table.getPublicSchemaName() + " / " + table.getName(), new Exception());
89+
return;
90+
}
91+
8692
if (table instanceof SchemaTableInfo)
8793
_log.error("Table customizer is being passed a SchemaTableInfo for: " + table.getPublicSchemaName() + "." + table.getPublicName());
8894
else if (table instanceof AbstractTableInfo)

0 commit comments

Comments
 (0)