From 791fa796588c82acf8e43fd81c2afc8753bff766 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 24 May 2016 23:25:24 +0800 Subject: [PATCH] Fix AcoustID issue: NoSuchElementException: No Value Present @see https://www.filebot.net/forums/viewtopic.php?f=6&t=3818 --- source/net/filebot/web/AcoustIDClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/web/AcoustIDClient.java b/source/net/filebot/web/AcoustIDClient.java index 08c303e2..c2e63cd6 100644 --- a/source/net/filebot/web/AcoustIDClient.java +++ b/source/net/filebot/web/AcoustIDClient.java @@ -175,7 +175,7 @@ public class AcoustIDClient implements MusicIdentificationService { debug.log(Level.WARNING, e.getMessage(), e); return null; } - }).filter(Objects::nonNull).sorted(new MostFieldsNotNull()).findFirst().get(); + }).filter(Objects::nonNull).sorted(new MostFieldsNotNull()).findFirst().orElse(null); } return null;