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

lutoff
03.14.2006 f0348538e061941eff777a8e7a3756ff96c02be3
Check null value to prevent NullPointerException
1 files modified
13 ■■■■ changed files
opends/src/server/org/opends/server/controls/MatchedValuesFilter.java 13 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/controls/MatchedValuesFilter.java
@@ -268,9 +268,16 @@
                      String.valueOf(assertionValue));
    String          rawAttributeType  = attributeType.getNameOrOID();
    ASN1OctetString rawAssertionValue =
         assertionValue.getValue().toASN1OctetString();
    String          rawAttributeType  = null ;
    ASN1OctetString rawAssertionValue = null ;
    if (attributeType != null)
    {
      rawAttributeType = attributeType.getNameOrOID();
    }
    if (assertionValue != null)
    {
      rawAssertionValue = assertionValue.getValue().toASN1OctetString();
    }
    MatchedValuesFilter filter =
         new MatchedValuesFilter(EQUALITY_MATCH_TYPE, rawAttributeType,