mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01: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…
x
Reference in New Issue
Block a user