From c881f6be3c9b11b234cfbc733ce29fa888ceaeb5 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 5 Jun 2017 03:05:53 +0800 Subject: [PATCH] Default to null --- source/net/filebot/format/MediaBindingBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 50f6730f..bdfcb0c0 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -328,7 +328,7 @@ public class MediaBindingBean { String codec = getMediaInfo(StreamKind.Video, 0, "Encoded_Library_Name", "Encoded_Library/Name", "CodecID/Hint", "Format"); // get first token (e.g. DivX 5 => DivX) - return tokenize(codec).findFirst().get(); + return tokenize(codec).findFirst().orElse(null); } @Define("ac")