diff --git a/java/code/src/com/redhat/rhn/frontend/action/ssm/RebootSystemAction.java b/java/code/src/com/redhat/rhn/frontend/action/ssm/RebootSystemAction.java index 4579d0f648c4..4e8a0c353ee6 100644 --- a/java/code/src/com/redhat/rhn/frontend/action/ssm/RebootSystemAction.java +++ b/java/code/src/com/redhat/rhn/frontend/action/ssm/RebootSystemAction.java @@ -91,13 +91,15 @@ public List getResult(RequestContext context) { List systems = SystemManager.inSet(context.getCurrentUser(), RhnSetDecl.SYSTEMS.getLabel()); - List sids = ServerFactory.findSystemsPendingRebootActions(systems); - if (!sids.isEmpty()) { - getStrutsDelegate().saveMessage("ssm.misc.reboot.message.scheduled", context.getRequest()); - } - - for (SystemOverview systemOverview : systems) { - systemOverview.setSelectable(1); + if (!systems.isEmpty()) { + List sids = ServerFactory.findSystemsPendingRebootActions(systems); + if (!sids.isEmpty()) { + getStrutsDelegate().saveMessage("ssm.misc.reboot.message.scheduled", context.getRequest()); + } + + for (SystemOverview systemOverview : systems) { + systemOverview.setSelectable(1); + } } return systems; diff --git a/java/spacewalk-java.changes.carlo.Manager-4.3-fix-ssm-page-reboot b/java/spacewalk-java.changes.carlo.Manager-4.3-fix-ssm-page-reboot new file mode 100644 index 000000000000..ee29d10ae8c8 --- /dev/null +++ b/java/spacewalk-java.changes.carlo.Manager-4.3-fix-ssm-page-reboot @@ -0,0 +1,2 @@ +- Fixes bug when accessing menu Systems | System Set Manager | + Misc | Reboot with no system selected (bsc#1222820)