Fix bug where data migration from 1.8 would fail.

This commit is contained in:
Olof Larsson 2013-06-27 10:06:15 +02:00
parent 765e187bd1
commit 6339861819
3 changed files with 6 additions and 3 deletions

View File

@ -44,7 +44,10 @@ public class FactionColl extends Coll<Faction>
{
Faction ret = super.get(oid);
if (ret == null)
// We should only trigger automatic clean if the whole database system is initialized.
// A cleaning can only be successful if all data is available.
// Example Reason: When creating the special factions for the first time "createSpecialFactions" a clean would be triggered otherwise.
if (ret == null && Factions.get().isDatabaseInitialized())
{
String message = Txt.parse("<b>Non existing factionId <h>%s <b>requested. <i>Cleaning all boards and uplayers.", this.fixId(oid));
Factions.get().log(message);