This is an automated email from the ASF dual-hosted git repository. jwills pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/crunch.git
commit 7c49b8b9f8f85782370e158fc681904c5c34647e Author: Andrew Olson <[email protected]> AuthorDate: Thu May 2 07:36:34 2019 -0500 CRUNCH-684: Fix NullPointerException Signed-off-by: Josh Wills <[email protected]> --- crunch-core/src/main/java/org/apache/crunch/io/FormatBundle.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crunch-core/src/main/java/org/apache/crunch/io/FormatBundle.java b/crunch-core/src/main/java/org/apache/crunch/io/FormatBundle.java index bbe7f5c..0b50080 100644 --- a/crunch-core/src/main/java/org/apache/crunch/io/FormatBundle.java +++ b/crunch-core/src/main/java/org/apache/crunch/io/FormatBundle.java @@ -31,6 +31,7 @@ import java.io.Serializable; import java.util.Arrays; import java.util.Map; +import java.util.Objects; import java.util.Set; import org.apache.commons.codec.binary.Base64; import org.apache.commons.lang.builder.HashCodeBuilder; @@ -147,7 +148,7 @@ public class FormatBundle<K> implements Serializable, Writable, Configurable { return false; } FormatBundle<K> oib = (FormatBundle<K>) other; - return formatClass.equals(oib.formatClass) && extraConf.equals(oib.extraConf); + return Objects.equals(formatClass, oib.formatClass) && Objects.equals(extraConf, oib.extraConf); } @Override
