We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 618525d + 3130559 commit 0ce99aeCopy full SHA for 0ce99ae
modules/org.restlet.ext.servlet/src/org/restlet/ext/servlet/internal/ServletServerAdapter.java
@@ -85,8 +85,10 @@ public HttpRequest toRequest(ServerCall httpCall) {
85
for (final Enumeration<String> namesEnum = servletCall.getRequest()
86
.getAttributeNames(); namesEnum.hasMoreElements();) {
87
attributeName = namesEnum.nextElement();
88
- result.getAttributes().put(attributeName,
89
- servletCall.getRequest().getAttribute(attributeName));
+ Object attribute = servletCall.getRequest().getAttribute(attributeName);
+ if (attribute != null) {
90
+ result.getAttributes().put(attributeName, attribute);
91
+ }
92
}
93
94
0 commit comments