Empty node name causes exception

Steps to reproduce

Steps to reproduce:
1. Ensure oc_host_registration has node_name = NULL
2. Go to System->Servers

Actual Results:
The table does not show any results. In the Opencast log, you find:

Caused by: java.lang.IllegalArgumentException: Value of field 'nodeName' must not be null
at com.entwinemedia.fn.data.json.Field.<init>(Field.java:31) ~[?:?]
at com.entwinemedia.fn.data.json.Jsons.f(Jsons.java:89) ~[?:?]
at org.opencastproject.adminui.endpoint.ServerEndpoint.getServersListAsJson(ServerEndpoint.java:345) ~[?:?]
at org.opencastproject.adminui.endpoint.ServerEndpoint.getServers(ServerEndpoint.java:317) ~[?:?]

Expected Results:
The Admin UI should still display the servers even if the backend does not deliver a valid nodename

Workaround (if any):

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.


Sven Stauber


Sven Stauber


Incorrectly Functioning Without Workaround