Open zhaoyangyingmu opened 2 years ago
Hi zhaoyangyingmu,
I couldn't reproduce the issue on my end. Actually, NPE does not seem to be possible for me, as the UriInfo#cacheKey would be null
on a missing htmlLibrary
. In such a case, if (uriInfo.cacheKey != null)
would yield false and calculateMd5
on line 472 would not be reached.
If the issue is reproducible on your end, can you please provide a stacktrace and the url etc that you use, so that I can reproduce the issue on my end? Otherwise, I would suggest closing the issue.
Cheers, Yunus
Required Information
Actual Behavior
In version 5.3.0, in method:
line number: 343 code:
htmlLibrary
could be null due to invocationBadMd5VersionedClientLibsFilter.doFilter
, in whichuriInfo.htmlLibrary
is passed.When
matcher.matches()
returnsfalse
,uriInfo.htmlLibrary
will be null, which will induce an npe in your project.