Probleme mit Hive

This commit is contained in:
Peter Hormanns 2011-05-19 17:37:29 +00:00
parent 8cf9a10749
commit ebf2e0d8ee
2 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ public class Pac extends AbstractEntity implements Serializable {
public Pac() {
basepac = new BasePac();
curINetAddr = new INetAddress();
hive = new Hive();
}
public Pac(String name, Customer cust, BasePac basePac, Hive hive) {

View File

@ -76,7 +76,7 @@ public class PacRemote extends AbstractRemote {
}
Hive hive = pac.getHive();
String hiveName = setParams.get("hive");
if (hive == null && assertNotNull(hiveName)) {
if ((hive == null || hive.getName() == null) && assertNotNull(hiveName)) {
hive = new Hive();
hive.setName(hiveName);
pac.setHive(hive);