PropertyDefinition does not create the underlying user string until the first set

Create issue
Issue #332 resolved
Paul Turner created an issue

The PropertyDefinition does not create the user string that holds the property value until the first time the set member is called, if the get member is called without first having called set, then an exception will be raised due to the missing user string.


Reproducibility: have not tried

Comments (1)

  1. Paul Turner reporter

    Fixed in branches/v0-7 r2431.

    The implementation of the fix uses try/catch to save a double look up of the user string name, and is therefore more optimal for the usual case (where the user string already exists). A side-effect of this implementation does mean that the error is still logged, though this is a consequence of the way CEGUI::Exception is currently written (might look to address that in the future).

  2. Log in to comment