mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-04-01 18:00:12 +02:00
fix potential bugs
This commit is contained in:
@@ -33,10 +33,6 @@
|
||||
|
||||
package sonia.scm.repository;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import sonia.scm.util.Util;
|
||||
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@@ -303,7 +303,7 @@ public class XmlRepositoryManager extends AbstractRepositoryManager
|
||||
Repository fresh = repositoryDB.get(repository.getType(),
|
||||
repository.getName());
|
||||
|
||||
if (repository != null)
|
||||
if (fresh != null)
|
||||
{
|
||||
repository.copyProperties(fresh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user