commit | 259f9d3ce289876ff05c3f975de61f9b0e0a2985 | [log] [tgz] |
---|---|---|
author | Karl Pauls <kpauls@adobe.com> | Mon Apr 20 17:34:51 2020 +0200 |
committer | Karl Pauls <pauls@apache.org> | Tue May 12 12:30:33 2020 +0200 |
tree | 429dc76d93ac7254c1a67dc20c3c967bdd07800f | |
parent | e7da6a5e571ffe9e8804016f7bc7fdd588e13eab [diff] |
Fix a nullpointer if no options are provided
diff --git a/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java b/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java index 630d6c3..e80663a 100644 --- a/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java +++ b/main/java/org/apache/sling/scripting/bundle/tracker/internal/request/RequestWrapper.java
@@ -46,7 +46,7 @@ if (resource == null) { return null; } - if (StringUtils.isEmpty(options.getForceResourceType())) { + if (options != null && StringUtils.isEmpty(options.getForceResourceType())) { options.setForceResourceType(resource.getResourceType()); } RequestDispatcherOptions processedOptions = processOptions(options);