diff --git a/org.adempiere.base/src/org/compiere/model/MRole.java b/org.adempiere.base/src/org/compiere/model/MRole.java index b6f6f3b0b2..9eac524285 100644 --- a/org.adempiere.base/src/org/compiere/model/MRole.java +++ b/org.adempiere.base/src/org/compiere/model/MRole.java @@ -117,7 +117,7 @@ public final class MRole extends X_AD_Role * @param reload if true forces load * @return role */ - public static MRole get (Properties ctx, int AD_Role_ID, int AD_User_ID, boolean reload) + public synchronized static MRole get (Properties ctx, int AD_Role_ID, int AD_User_ID, boolean reload) { if (s_log.isLoggable(Level.INFO)) s_log.info("AD_Role_ID=" + AD_Role_ID + ", AD_User_ID=" + AD_User_ID + ", reload=" + reload); String key = AD_Role_ID + "_" + AD_User_ID;