Bug fixes

Bug with NullPointerException in the hashCode() method of each classes
from partner-hierarchy