NullPointerException when viewing group of layers

Description

When clicking in the left menu the layer groups option, the following error is shown:

Environment

None

Attachments

1

Activity

Andrea Aime 
April 19, 2022 at 8:37 AM

do you have steps to reproduce? How do we get to the NPE in question?

Jody Garnett 
February 25, 2022 at 8:49 PM

I just ran into this issue; while a NPE exception could be avoided … what is the cause of the layer group being invalid/rejected?

Andrea Aime 
January 21, 2021 at 11:49 AM

Procedure here:

Requirements for merge here:

David Pérez 
October 27, 2020 at 6:57 AM

I can make a pull request for avoiding a NullPointerException. What is the procedure for making it available?

David Pérez 
October 23, 2020 at 7:13 AM
(edited)

The best solution I’ve found is remote debugging of the JVM in order to find the offending layer groups.

Removing all files from the layergroups directory doesn’t help. But the stacktrace changes a little:

I propose that instead of a NullPointerException, a check should be added for checking null values and an error log should be generated. This is much better than just crashing.

Details

Assignee

Reporter

Affects versions

Priority

Created October 20, 2020 at 2:07 PM
Updated April 19, 2022 at 8:37 AM