Fix JOSM #21872: NPE in MapWithAIProvidersPanel

Signed-off-by: Taylor Smock <tsmock@fb.com>
pull/1/head v1.9.10
Taylor Smock 2022-03-23 12:20:37 -06:00
rodzic 8056a8c09c
commit 52724d0ab7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -222,7 +222,7 @@ public class MapWithAIProvidersPanel extends JPanel {
private static class MapWithAILicenseTableCellRenderer extends MapWithAITableCellRenderer<String> {
MapWithAILicenseTableCellRenderer() {
super(s -> !s.isEmpty() ? "<html><a href=\"" + s + "\">License</a>" : "",
super(s -> s != null && !s.isEmpty() ? "<html><a href=\"" + s + "\">License</a>" : "",
u -> MapWithAILayerInfo.getInstance().getAllDefaultLayers().stream()
.filter(i -> u.equals(i.getUrl())).findFirst().orElse(null),
u -> u, null, true);