Internally the method assumes that a non-null state value comes from another installer. As a result the method will attempt to look up an internal value from the state. If it fails then an exception will be thrown. Therefore you should either pass null (the general case) or the saved state from another installer (if available).