After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647500 - f-spot crashes when invoking the gallery exporter
f-spot crashes when invoking the gallery exporter
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Export
0.8.2
Other Linux
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2011-04-11 20:37 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2012-03-05 23:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug log (4.05 KB, text/text)
2011-04-11 20:37 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
  Details
avoid -1 index access (1.26 KB, patch)
2011-04-11 20:40 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
none Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2011-04-11 20:37:18 UTC
Created attachment 185756 [details]
debug log

see also: https://bugzilla.novell.com/show_bug.cgi?id=684969

The exception happens at:
http://git.gnome.org/browse/f-spot/tree/src/Extensions/Exporters/FSpot.Exporters.Gallery/FSpot.Exporters.Gallery/GalleryExport.cs?id=0.8.2#n259

the reason is that gallery_optionmenu.Active is -1 if no entry has been selected.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2011-04-11 20:40:28 UTC
Created attachment 185757 [details] [review]
avoid -1 index access

This patch is still against git master. Let me know if 0.8.X development takes place elsewhere.
Comment 2 Stephen Shaw 2012-03-05 23:13:01 UTC
Since I convert accounts from ArrayList to List unboxing the value is no longer needed.  I applied the patch manually instead and gave credit in the commit message.