Ticket #7004 (closed: fixed)
FunctionProperty crashes MantidPlot in Python
Reported by: | Gesner Passos | Owned by: | Martyn Gigg |
---|---|---|---|
Priority: | blocker | Milestone: | Release 2.5 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Gesner Passos |
Description
Try to run this code:
from mantid.api import FunctionProperty func = FunctionProperty("TestFunction")
And be prepared to restart mantid.
Verified in Ubuntu 12.4 and Windows 7.
Change History
comment:2 Changed 7 years ago by Martyn Gigg
Add null pointer check to FunctionProperty::value.
Also updates the unit test to test for this behaviour. Refs #7004
Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978
comment:3 Changed 7 years ago by Martyn Gigg
Add null pointer check to FunctionProperty::value.
Also updates the unit test to test for this behaviour. Refs #7004
Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978
comment:4 Changed 7 years ago by Martyn Gigg
- Status changed from accepted to verify
- Resolution set to fixed
Branch: bugfix/7004_function_property_crash
Tester: Run the script above in MantidPlot and there should be no crash.
comment:5 Changed 7 years ago by Gesner Passos
- Status changed from verify to verifying
- Tester set to Gesner Passos
comment:6 Changed 7 years ago by Martyn Gigg
Add null pointer check to FunctionProperty::value.
Also updates the unit test to test for this behaviour. Refs #7004
Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978
comment:7 Changed 7 years ago by Gesner Passos
- Status changed from verifying to closed
Problem solved.
comment:8 Changed 7 years ago by Martyn Gigg
Add null pointer check to FunctionProperty::value.
Also updates the unit test to test for this behaviour. Refs #7004
Changeset: a3757c7d68ffb99c4dadbcc9dc0ae57a16d78978