mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-07-04 06:15:33 +02:00
Fix NullPointerException
This commit is contained in:
parent
c2b72c067f
commit
240dedf2e7
|
@ -590,7 +590,9 @@ public class CatalogManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public CatalogPage getCatalogPage(String captionSafe) {
|
public CatalogPage getCatalogPage(String captionSafe) {
|
||||||
return this.catalogPages.valueCollection().stream().filter(p -> p.getPageName().equalsIgnoreCase(captionSafe)).findAny().orElse(null);
|
return this.catalogPages.valueCollection().stream()
|
||||||
|
.filter(p -> p != null && p.getPageName() != null && p.getPageName().equalsIgnoreCase(captionSafe))
|
||||||
|
.findAny().orElse(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user