The factType is clearly null at this line, so make it clear that the method getFactTypeFromRHS() is called with null as param.