Commit 3ffcde95 authored by Andrea Aime's avatar Andrea Aime
Browse files

Guard against AWTError which can happen in some docker containers due to incomplete installations

parent 52bdc6bd
......@@ -5,6 +5,7 @@
*/
package org.geoserver.web.wicket.browser;
import java.awt.*;
import java.io.File;
import java.io.FileFilter;
import java.util.ArrayList;
......@@ -278,7 +279,7 @@ public class GeoServerFileChooser extends Panel {
return displayName.trim();
}
return FilenameUtils.getPrefix(f.getAbsolutePath());
} catch (Exception e) {
} catch (Exception | AWTError e ) {
LOGGER.log(
Level.FINE,
"Failed to get file display name, "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment