Skip to content

Commit

Permalink
Make "create empty module" work on SQL Server
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-adam committed Nov 21, 2024
1 parent 9735eb6 commit 9e0e5ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/src/org/labkey/api/module/ModuleLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,8 @@ private void pruneModules(List<Module> modules)
Module core = getCoreModule();

SupportedDatabase coreType = SupportedDatabase.get(CoreSchema.getInstance().getSqlDialect());
for (Module module : modules)
// Need to enumerate a copy of the list to avoid ConcurrentModificationException
for (Module module : new ArrayList<>(modules))
{
if (module == core)
continue;
Expand Down

0 comments on commit 9e0e5ac

Please sign in to comment.