clipproperties.py:563:_onValueChangedCb:AttributeError: 'NoneType' object has no attribute 'get_property'
@nathanael
Submitted by nathanael Assigned to nathanael @nathanael
Description
Received this traceback when playing around with pitivi for a few minutes. not exactly sure how I triggered it but it seems like a pretty simple fix.
backtrace:
:clipproperties.py:563:_onValueChangedCb:AttributeError: 'NoneType' object has
no attribute 'get_property'
:
:Traceback (most recent call last):
: File "/usr/share/pitivi/python/pitivi/ui/clipproperties.py", line 563, in
_onValueChangedCb
: if value != self.effect.get_property(prop):
:AttributeError: 'NoneType' object has no attribute 'get_property'
:
:Local variables in innermost frame:
:self: <TransformationProperties object at 0x2378f00 (GtkExpander at
0x2958990)>
:spinbtn: <gtk.SpinButton object at 0x237a3c0 (GtkSpinButton at 0x29680a0)>
:value: 0.5
:prop: 'tilt_x'
RH Bug: https://bugzilla.redhat.com/show_bug.cgi?id=818993
I've manually edited the clipproperties.py file to change
if value != self.effect.get_property(prop):
to
if self.effect != None and value != self.effect.get_property(prop):
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=675449