mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
fix nullpointerexcpetion on first login
This commit is contained in:
@@ -59,6 +59,20 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
public class XmlGroupDatabase
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructs ...
|
||||
*
|
||||
*/
|
||||
public XmlGroupDatabase()
|
||||
{
|
||||
long c = System.currentTimeMillis();
|
||||
|
||||
creationTime = c;
|
||||
lastModified = c;
|
||||
}
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
|
||||
@@ -209,7 +209,6 @@ public class XmlGroupManager extends AbstractGroupManager
|
||||
if (groupDB == null)
|
||||
{
|
||||
groupDB = new XmlGroupDatabase();
|
||||
groupDB.setCreationTime(System.currentTimeMillis());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user