diff --git a/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java b/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java index b8d75431..d70b6ef9 100644 --- a/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java +++ b/src/main/java/com/facebook/ads/utils/CustomDataAdapter.java @@ -68,7 +68,7 @@ public JsonElement serialize(final CustomData src, Type typeOfSrc, final JsonSer } // Adding Custom Properties to serialized object - if (null != src.getCustomProperties()) { + if (src.getCustomProperties() != null) { for (final String key : src.getCustomProperties().keySet()) { serializedObject.addProperty(key, src.getCustomProperties().get(key)); }