Prevent NullPointerException

Steps to reproduce

Restarting a server while the admin interface is still open it happens
from time to time that the table refresh kicks in at the wrong time and
requests resources from Opencast which end in the following
NullPointerException:

(AbstractFaultChainInitiatorObserver:114) - An unexpected error
occurred during error handling. No further error processing will
occur.
org.apache.cxf.interceptor.Fault: null
...
Caused by: java.lang.NullPointerException
at org.opencastproject.adminui.endpoint.AbstractEventEndpoint.getEvents
(AbstractEventEndpoint.java:2050)

This patch adds a simple null check preventing this.

Status

Assignee

Lars Kiesow

Reporter

Lars Kiesow

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major
Configure