java/code/src/com/redhat/rhn/frontend/action/groups/AdminListAction.java | 7 -------
java/code/src/com/redhat/rhn/frontend/action/groups/ErrataListAction.java | 5 -----
2 files changed, 12 deletions(-)
New commits:
commit 091328ac72fab99b783ea432d93b9e87bb1bda1d
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Wed Dec 18 11:48:45 2013 +0100
removing dead code, exception is thrown within lookupAndBindServerGroup
removing due to: The variable serverGroup can only be null at this location
diff --git a/java/code/src/com/redhat/rhn/frontend/action/groups/ErrataListAction.java b/java/code/src/com/redhat/rhn/frontend/action/groups/ErrataListAction.java
index 1bd5a5b..9f40a63 100644
--- a/java/code/src/com/redhat/rhn/frontend/action/groups/ErrataListAction.java
+++ b/java/code/src/com/redhat/rhn/frontend/action/groups/ErrataListAction.java
@@ -15,7 +15,6 @@
package com.redhat.rhn.frontend.action.groups;
import com.redhat.rhn.domain.server.ManagedServerGroup;
-import com.redhat.rhn.frontend.action.common.BadParameterException;
import com.redhat.rhn.frontend.struts.RequestContext;
import com.redhat.rhn.frontend.struts.RhnAction;
import com.redhat.rhn.frontend.struts.StrutsDelegate;
@@ -46,10 +45,6 @@ public class ErrataListAction extends RhnAction implements Listable {
RequestContext requestContext = new RequestContext(request);
ManagedServerGroup serverGroup = requestContext.lookupAndBindServerGroup();
- if (serverGroup == null) {
- throw new BadParameterException("Invalid " + RequestContext.SERVER_GROUP_ID +
- " parameter:" + serverGroup.getId());
- }
ListHelper helper = new ListHelper(this, request);
helper.execute();
commit 114c012d6cea1579eb5d60c213ae51073fd5ab93
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Wed Dec 18 10:27:45 2013 +0100
removing dead code, exception is thrown within lookupAndBindServerGroup
removing due to: The variable serverGroup can only be null at this
location
diff --git a/java/code/src/com/redhat/rhn/frontend/action/groups/AdminListAction.java b/java/code/src/com/redhat/rhn/frontend/action/groups/AdminListAction.java
index e63a7da..3a843e9 100644
--- a/java/code/src/com/redhat/rhn/frontend/action/groups/AdminListAction.java
+++ b/java/code/src/com/redhat/rhn/frontend/action/groups/AdminListAction.java
@@ -18,7 +18,6 @@ import com.redhat.rhn.domain.server.ManagedServerGroup;
import com.redhat.rhn.domain.server.ServerGroupFactory;
import com.redhat.rhn.domain.role.RoleFactory;
import com.redhat.rhn.domain.user.User;
-import com.redhat.rhn.frontend.action.common.BadParameterException;
import com.redhat.rhn.frontend.dto.UserOverview;
import com.redhat.rhn.frontend.struts.RequestContext;
import com.redhat.rhn.frontend.struts.RhnAction;
@@ -58,12 +57,6 @@ public class AdminListAction extends RhnAction implements Listable {
ManagedServerGroup serverGroup = requestContext.lookupAndBindServerGroup();
User user = requestContext.getCurrentUser();
- if (serverGroup == null) {
- throw new BadParameterException("Invalid " + RequestContext.SERVER_GROUP_ID +
- " parameter:" + serverGroup.getId());
- }
-
-
ListRhnSetHelper helper = new ListRhnSetHelper(this, request,
RhnSetDecl.setForSystemGroupAdmins(serverGroup));
Set<Long> preselected = new HashSet<Long>();