Closed
Description
cda opened SPR-16364 and commented
Test case:
UriComponents uri1 = UriComponentsBuilder.fromUriString( "http://test.com" ).build().normalize();
UriComponents uri2 = UriComponentsBuilder.fromUriString( "http://test.com/" ).build();
assert !uri1.equals( uri2 );
Throws:
java.lang.NullPointerException
at org.springframework.web.util.HierarchicalUriComponents$FullPathComponent.equals(HierarchicalUriComponents.java:700)
at org.springframework.web.util.HierarchicalUriComponents.equals(HierarchicalUriComponents.java:464)
...
Also, this code throws NullPointerException:
UriComponentsBuilder.fromUriString( "http://test.com" ).build().normalize().getPathSegments()
Affects: 4.3.12
Issue Links:
- Introduce null-safety of Spring Framework API [SPR-15540] #20099 Introduce null-safety of Spring Framework API