Make app.addRepository() synchronized to avoid memory race conditions.
This commit is contained in:
parent
01e8b5ccbd
commit
f3c6c7a93f
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ public class ApplicationBean implements Serializable {
|
||||||
*
|
*
|
||||||
* @param obj the repository, relative or absolute path to the library.
|
* @param obj the repository, relative or absolute path to the library.
|
||||||
*/
|
*/
|
||||||
public void addRepository(Object obj) {
|
public synchronized void addRepository(Object obj) {
|
||||||
Resource current = app.getCurrentCodeResource();
|
Resource current = app.getCurrentCodeResource();
|
||||||
Repository parent = current == null ?
|
Repository parent = current == null ?
|
||||||
null : current.getRepository().getRootRepository();
|
null : current.getRepository().getRootRepository();
|
||||||
|
|
Loading…
Add table
Reference in a new issue