[mb-commits] branch, beta, updated. When serializing releases in the json webservice: do not try to load coverart...
MusicBrainz Git Server <[email protected]> Mon, 21 Jan 2013 12:14:18 +0000
| Newsgroups | gmane.comp.audio.musicbrainz.cvs |
|---|---|
| Message-ID | <E1TxGGY-0008Mn-QW@wiley> |
The branch, beta has been updated
via http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=05493516cb367732ff06bbc9153fe023ec743dc7 (commit)
from http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=db728dbbbf23f9e3068666c5987797da286d3dc7 (commit)
Summary of changes:
.../Server/WebService/Serializer/JSON/2/Release.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 05493516cb367732ff06bbc9153fe023ec743dc7
Author: warp <[email protected]>
Date: Mon Jan 21 13:13:19 2013 +0100
When serializing releases in the json webservice: do not try to load coverart from the stash if there is no stash.
diff --git a/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Release.pm b/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Release.pm
index 171fb0c..5144b06 100644
--- a/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Release.pm
+++ b/lib/MusicBrainz/Server/WebService/Serializer/JSON/2/Release.pm
@@ -42,7 +42,7 @@ sub serialize
$body{packaging} = $entity->packaging
? $entity->packaging->name : JSON::null;
- my $coverart = $stash->store($entity)->{'cover-art-archive'};
+ my $coverart = $stash ? $stash->store($entity)->{'cover-art-archive'} : undef;
if ($coverart) {
$body{'cover-art-archive'} = {
artwork => boolean($entity->cover_art_presence eq 'present'),
-----------------------------------------------------------------------
hooks/post-receive
--
mb_server