Bug 62 - abcde-musicbrainz-tool --command data --discid QGi07LeAr4lqmuMKVn6dZJELpxM- crashes
Summary: abcde-musicbrainz-tool --command data --discid QGi07LeAr4lqmuMKVn6dZJELpxM- c...
Status: RESOLVED DUPLICATE of bug 57
Alias: None
Product: abcde
Classification: Unclassified
Component: CD lookup (show other bugs)
Version: unspecified
Hardware: All All
: Normal normal
Assignee: Steve McIntyre
URL:
Depends on:
Blocks:
 
Reported: 2017-04-15 11:04 BST by abcde
Modified: 2018-02-21 21:49 GMT (History)
1 user (show)

See Also:


Attachments
patch to fix abcde-musicbrainz-tool (266 bytes, patch)
2017-04-15 11:04 BST, abcde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abcde 2017-04-15 11:04:56 BST
Created attachment 50 [details]
patch to fix abcde-musicbrainz-tool

Calling abcde-musicbrainz-tool --command data --discid QGi07LeAr4lqmuMKVn6dZJELpxM- crashes with the error message 'Can't call method "count" on an undefined value at ./abcde-musicbrainz-tool line 99'

Apparently sometimes $release->release_event_list() doesn't return an empty list but the undef value.

The attached patch checks $release->release_event_list() before calling count() on it and fixes the bug.
Comment 1 Steve McIntyre 2018-02-21 21:49:53 GMT
Thanks for the report; I think this is fixed already in a slightly different way.

*** This bug has been marked as a duplicate of bug 57 ***