2 parents 099971b + 9dba6d8 commit 4c8af76Copy full SHA for 4c8af76
2 files changed
NEWS
@@ -1,4 +1,6 @@
1
ver 0.24.15 (not yet released)
2
+* protocol
3
+ - fix crash on "sticker delete"
4
* playlist
5
- asx, rss, xspf: limit to 16 MB
6
- cue: fix problem playing CUE tracks in music directory root
src/command/StickerCommands.cxx
@@ -84,7 +84,12 @@ class DomainHandler {
84
? sticker_database.Delete(sticker_type, uri)
85
: sticker_database.DeleteValue(sticker_type, uri, name);
86
if (!ret) {
87
- response.FmtError(ACK_ERROR_NO_EXIST, "no such sticker: {:?}", name);
+ if (name == nullptr)
88
+ response.FmtError(ACK_ERROR_NO_EXIST,
89
+ "no stickers found: {:?}", uri);
90
+ else
91
92
+ "no such sticker: {:?}", name);
93
return CommandResult::ERROR;
94
}
95
0 commit comments