IDEMPIERE-4433 - MTable error - ConcurrentModificationException (#237)

Fix Putting into Cache outside Synchronized methods.
This commit is contained in:
igorpojzl 2020-08-26 14:35:16 +02:00 committed by GitHub
parent 02f4d526dc
commit f13313760c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class MTable extends X_AD_Table
* @param trxName transaction
* @return MTable
*/
public static MTable get (Properties ctx, int AD_Table_ID, String trxName)
public static synchronized MTable get (Properties ctx, int AD_Table_ID, String trxName)
{
Integer key = Integer.valueOf(AD_Table_ID);
MTable retValue = s_cache.get (key);