Recover from invalid db entry

This commit is contained in:
Jesse Boyd 2016-03-27 07:31:35 +11:00
parent 53e56a6414
commit e3f5842299

View File

@ -202,8 +202,12 @@ public class ClassicPlotMeConnector extends APlotMeConnector {
continue; continue;
} }
} }
if (plots.get(world).containsKey(id)) { HashMap<PlotId, Plot> worldMap = plots.get(world);
plots.get(world).get(id).getDenied().add(denied); if (worldMap != null) {
Plot plot = worldMap.get(id);
if (plot != null) {
plot.getDenied().add(denied);
}
} }
} }
@ -242,8 +246,12 @@ public class ClassicPlotMeConnector extends APlotMeConnector {
continue; continue;
} }
} }
if (plots.get(world).containsKey(id)) { HashMap<PlotId, Plot> worldMap = plots.get(world);
plots.get(world).get(id).getTrusted().add(helper); if (worldMap != null) {
Plot plot = worldMap.get(id);
if (plot != null) {
plot.getTrusted().add(helper);
}
} }
} }