getState() should return a map (null is not allowed)