From f8fb5d31e410c2145c31d9451a4940b113e704de Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@hostsharing.net>
Date: Thu, 19 May 2011 20:16:11 +0200
Subject: [PATCH] Probleme mit INetAddr

---
 hsarback/src/de/hsadmin/remote/PacRemote.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hsarback/src/de/hsadmin/remote/PacRemote.java b/hsarback/src/de/hsadmin/remote/PacRemote.java
index 3de8a4a..676ec18 100644
--- a/hsarback/src/de/hsadmin/remote/PacRemote.java
+++ b/hsarback/src/de/hsadmin/remote/PacRemote.java
@@ -63,7 +63,7 @@
 		pac.setCreated(new Date());
 		INetAddress curINetAddr = pac.getCurINetAddr();
 		String inetAddrString = setParams.get("curinetaddr");
-		if (curINetAddr == null && assertNotNull(inetAddrString)) {
+		if ((curINetAddr == null || curINetAddr.getInetAddr() == null) && assertNotNull(inetAddrString)) {
 			curINetAddr = new INetAddress(inetAddrString);
 			pac.setCurINetAddr(curINetAddr);
 		}

--
Gitblit v1.9.1