SAP Knowledge Base Article - Public

3716891 - Nullpointerexception error during rehire of an employee

Symptom

  • An error occurs when rehiring a Contingent Worker (CWK) to a Regular Employee via the "Add New Employee" process using Accept Match.
  • The error message displayed is: "java.lang.IllegalStateException: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.successfactors.hris.api.bean.eo.IBaseHrisEO.getUsersSysId()" is null"

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Go to Add new employee page
  2. Fill in the details ->Accept match
  3. Submit
  4. Error occurs "java.lang.IllegalStateException: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.successfactors.hris.api.bean.eo.IBaseHrisEO.getUsersSysId()" is null"

Resolution

  1. Please do check whether any records exists after termination date like in Personal info/Job Info etc
  2. Delete the records or change their effective dates to precede the termination date.

Keywords

nullpointerexception, java.lang.IllegalStateException, contingent worker conversion, regular employee, accept match, personal info records, termination date, error, sap successfactors, employee central,"java.lang.IllegalStateException: java.lang.NullPointerException: Cannot invoke "String.equals(Object)" because the return value of "com.successfactors.hris.api.bean.eo.IBaseHrisEO.getUsersSysId()" is null",EC, employee central, rehire, cwk, CWK, accept, new employment, new, null, pointer, exception , KBA , LOD-SF-EC-HIR-RIE , Rehire Inactive Employee , LOD-SF-EC , Employee Central , How To

Product

SAP SuccessFactors Employee Central all versions