/**
 * 
 */
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);
    }
    
}
@@ -839,19 +839,17 @@
 row, 4, 
-%22%22+
+(
 notif.ge
@@ -858,24 +858,74 @@
 espondTime()
+ != null) ? notif.getRespondTime().toString() : %22%22
 );%0A        t

Fix the case where respond time is null