Fix NPE if root is null
This commit is contained in:
kordum committed 2017-06-22 14:53:53 +03:00
1 parent 7d269684da
commit dcd08c4d37
2 files changed
+5 -1

No files matched your search

@@ -92,6 +92,10 @@ public class ManagerGenetics extends ManagerBase {
}
public BreedingSystem getSystem(ISpeciesRoot root) {
// Fix NPE
if (root == null) {
return null;
}
return getSystem(root.getUID());
}