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 386010 - Null String After --search Crashes Tomboy
Null String After --search Crashes Tomboy
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other All
: Normal critical
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-14 21:40 UTC by David Richards
Modified: 2008-02-26 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Richards 2006-12-14 21:40:52 UTC
Steps to reproduce:
Tim:  Based on our IRC conversation, opening this bug.  If you specify a null ("") on the command line it crashes Tomboy with an array error.

'tomboy --search ""'    should run the same as 'tomboy -search'

I'm sure that I am not the only person that passes a null even when I don't want a search criteria with the assumption that all qualifiers must be passed on the command line.

Stack trace:
Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
in <0x0019a> Tomboy.TomboyCommandLine:Parse (System.String[] args)
in <0x0000d> Tomboy.TomboyCommandLine:.ctor (System.String[] args)
in <0x00036> Tomboy.Tomboy:Main (System.String[] args)
drichard@oa3:~>

Other information:
Comment 1 Boyd Timothy 2006-12-19 00:45:15 UTC
Fixed and checked-in to CVS.