I discovered today that JcrResourceResolver.map(" ") throws a
NullPointerException from inside the mangleNamespaces() method. This
is unintuitive, so I was trying to make it more intuitive.

But then I got stuck trying to think about what it should do. I've
come up with two options, but am open to others. Note - this isn't a
formal vote (unless someone else feels it should be):

1) throw IllegalArgumentException. In this case, map("") should
probably throw this exception as well.
2) return the root node (which is what map("") does currently).

WDYT?

Reply via email to