Skip to content

Commit

Permalink
Merge pull request #459 from BeliefYou8/UAVStackXingshengliLLL
Browse files Browse the repository at this point in the history
InvokeChain wrapper enhancement
  • Loading branch information
zengli00 authored Dec 7, 2018
2 parents aa8a2f4 + 77f2299 commit c384157
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ public static HttpServletResponse moveWrapper(String resWrapperName, HttpServlet

if (!resWrapperName.equals(response.getClass().getName())) {

response = (HttpServletResponse) ReflectionHelper.getField(response.getClass(), response, "response");
HttpServletResponse innerResponse = (HttpServletResponse) ReflectionHelper.getField(response.getClass(), response, "response");
if (innerResponse == null) {
return response;
}
else {
response = innerResponse;
}
}
else {
return response;
Expand Down

0 comments on commit c384157

Please sign in to comment.