Skip to content

Glassfish Upgrade - Null Pointer exception on Dataset - Edit Metadata #6512

@sekmiller

Description

@sekmiller

When trying to edit a dataset's metadata where the owning dataverse does not have any custom dataset field input levels you get a Null Pointer exception at Line 1624 of DatasetPage.java

On line 1618 the method on the datasetFieldTypeInputLevel service bean returns a null in Payara while when running Glassfish 4.1 the same line returns an empty array so there is no exception.

Again to recreate: create a dataset in a dataverse where there are no custom input levels for any of the dataset field types, then try to Edit Metadata. You should then see the exception in the log.

An easy fix would to be to put in a null check around the for loop at 1624.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions