cziegeler commented on code in PR #205:
URL:
https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/205#discussion_r3274010846
##########
src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceDecoratorTracker.java:
##########
@@ -141,6 +141,9 @@ public ResourceDecoratorEntry(final ResourceDecorator d,
final Comparable<Object
}
public int compareTo(final ResourceDecoratorEntry o) {
+ if (this.comparable == null || o.comparable == null) {
Review Comment:
while this prevents NPEs, it is not 100% correct, if one of them is null but
the other is not
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]