Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
15.2.2
-
None
-
None
-
Orion
-
Orion.Cycle3.Cooldown
-
Small
Description
In client projects with existing Robots documents the robotstxt:allow property won't be present until those documents are edited or updated with a groovy script.
This throws an NPE in org.onehippo.forge.robotstxt.annotated.Section line 45
return Arrays.asList(allows); because allows is null for existing documents.
This can be replaced with something likeĀ
return allows != null ? Arrays.asList(allows) : Arrays.asList();
Reproduced with clean archetype on v15.2.2 - see screenshot attached
Attachments
Issue Links
- is a result of
-
CMS-14837 Include allow field in robots plugin
- Closed