Skip to content

Commit 03a8d27

Browse files
committed
NPE in MetaICY
1 parent 4a795e6 commit 03a8d27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AudioMetaData/MetaDataICY.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ class MetaDataICY : public AbstractMetaData {
216216
int end = meta.indexOf("';");
217217
if (start>=0 && end>start){
218218
metaData[end]=0;
219-
callback(Title, (const char*)metaData+start+1, end-start);
219+
if (callback!=nullptr){
220+
callback(Title, (const char*)metaData+start+1, end-start);
221+
}
220222
}
221223
CHECK_MEMORY();
222224
} else {

0 commit comments

Comments
 (0)