Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 859904 Details for
Bug 1061954
NPE when calling system.listActiveSystemsDetails API method
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to correct null pointer xmlrpc faults
0001-patch-to-handle-systems-registered-with-the-nohardwa.patch (text/plain), 1.90 KB, created by
Shannon Hughes
on 2014-02-05 22:49:31 UTC
(
hide
)
Description:
patch to correct null pointer xmlrpc faults
Filename:
MIME Type:
Creator:
Shannon Hughes
Created:
2014-02-05 22:49:31 UTC
Size:
1.90 KB
patch
obsolete
>From 49787dbff8767e558aae4a7ffa5e864f1c06a875 Mon Sep 17 00:00:00 2001 >From: Shannon Hughes <shughes@redhat.com> >Date: Wed, 5 Feb 2014 17:39:55 -0500 >Subject: [PATCH] patch to handle systems registered with the --nohardware > flag > >--- > .../rhn/frontend/xmlrpc/system/SystemHandler.java | 22 ++++++++++++++++--- > 1 files changed, 18 insertions(+), 4 deletions(-) > >diff --git a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java >index d437a0b..8e27f61 100644 >--- a/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java >+++ b/java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java >@@ -697,10 +697,24 @@ public class SystemHandler extends BaseHandler { > m.put("id", server.getId()); > m.put("name", server.getName()); > m.put("last_checkin", convertLocalToUtc(server.getLastCheckin())); >- m.put("ram", server.getRam()); >- m.put("swap", server.getSwap()); >- m.put("cpu_info", server.getCpu()); >- m.put("dmi_info", server.getDmi()); >+ >+ m.put("ram", new Long(server.getRam())); >+ m.put("swap", new Long(server.getSwap())); >+ >+ CPU cpu = server.getCpu(); >+ if (cpu == null) { >+ m.put("cpu_info", new HashMap<String, String>()); >+ } else { >+ m.put("cpu_info", cpu); >+ } >+ >+ Dmi dmi = server.getDmi(); >+ if (dmi == null) { >+ m.put("dmi_info", new HashMap<String, String>()); >+ } else { >+ m.put("dmi_info", dmi); >+ } >+ > m.put("network_devices", > new ArrayList<NetworkInterface>(server > .getNetworkInterfaces())); >-- >1.7.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1061954
: 859904