mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
29.18.2008 10772a2f758b803e637f8528a1dd42bd0e27213f
Fix an possible null pointer dereferencing
1 files modified
4 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttrInfoSingle.java 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttrInfoSingle.java
@@ -91,7 +91,7 @@
    if (modAttr != null)
      values = modAttr.getValues();
    AttributeValue newValue = null;
    if (values.size() != 0)
    if ((values != null) && (values.size() != 0))
      newValue = values.iterator().next();
    switch (mod.getModificationType())
@@ -139,7 +139,7 @@
    if (modAttr != null)
      values = modAttr.getValues();
    AttributeValue newValue = null;
    if (values.size() != 0)
    if ((values != null) && (values.size() != 0))
      newValue = values.iterator().next();
    switch (mod.getModificationType())