The method getParentPackage(name) was returning the __root property if the class was a child of root. The __root property is initialized to null and if the first class is a child of root (such as q) then the property was returned uninitialized. This PR changes to call getPackage("") so it always return the root package.
The method
getParentPackage(name)
was returning the__root
property if the class was a child of root. The__root
property is initialized to null and if the first class is a child of root (such asq
) then the property was returned uninitialized. This PR changes to callgetPackage("")
so it always return the root package.