/**
 * 
 */
package org.opennms.dashboard.client;

import com.google.gwt.user.client.ui.FlexTable;


class NotificationView extends PageableTableView {
    
    private Notification[] m_notifications;
    
    NotificationView() {
        super(new String[] { "Node", "Service", "Sent Time", "Responder", "Response Time" });
    }

    public void setNotifications(Notification[] notifications) {
        m_notifications = notifications;
        refresh();
        
    }
    
	protected void setRow(FlexTable table, int row, int elementIndex) {
		Notification notif = m_notifications[elementIndex];
        table.setText(row, 0, notif.getNodeLabel());
        table.setText(row, 1, notif.getServiceName());
        table.setText(row, 2, ""+notif.getSentTime());
        table.setText(row, 3, notif.getResponder());
        table.setText(row, 4, (notif.getRespondTime() != null) ? notif.getRespondTime().toString() : "");
        table.getRowFormatter().setStyleName(row, notif.getSeverity());
    }
    
    public int getElementCount() {
        return (m_notifications == null ? 0 : m_notifications.length);
    }
    
}
/**
 * 
 */
package org.opennms.dashboard.client;

import com.google.gwt.user.client.ui.FlexTable;


class NotificationView extends PageableTableView {
    
    private Notification[] m_notifications;
    
    NotificationView() {
        super(new String[] { "Node", "Service", "Sent Time", "Responder", "Response Time" });
    }

    public void setNotifications(Notification[] notifications) {
        m_notifications = notifications;
        refresh();
        
    }
    
	protected void setRow(FlexTable table, int row, int elementIndex) {
		Notification notif = m_notifications[elementIndex];
        table.setText(row, 0, notif.getNodeLabel());
        table.setText(row, 1, notif.getServiceName());
        table.setText(row, 2, ""+notif.getSentTime());
        table.setText(row, 3, notif.getResponder());
        table.setText(row, 4, ""+notif.getRespondTime());
        table.getRowFormatter().setStyleName(row, notif.getSeverity());
    }
    
    public int getElementCount() {
        return (m_notifications == null ? 0 : m_notifications.length);
    }
    
}
--- 
+++ 
@@ -26,7 +26,7 @@
         table.setText(row, 1, notif.getServiceName());
         table.setText(row, 2, ""+notif.getSentTime());
         table.setText(row, 3, notif.getResponder());
-        table.setText(row, 4, ""+notif.getRespondTime());
+        table.setText(row, 4, (notif.getRespondTime() != null) ? notif.getRespondTime().toString() : "");
         table.getRowFormatter().setStyleName(row, notif.getSeverity());
     }
     
Fix the case where respond time is null
