Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Key.create() can instanciate a classKey if the first KeyPart is empty #154
I'd like to take about a line of code in Key.java
if (keyPart == null || keyPart.length == 0 || keyPart.toString().isEmpty())
If the first keyPart toString() is empty a ClassKey will be instanciate, and in the case of AbstractObjectModel model the method getObject() will not be able to retrieve the given keyPart.
I remember we already talk about this subject, but I can't find the message anymore (I think I have commented in a diff). On the other hand I found the corresponding commit : 2b791a5
Is it a regression issue?