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

lutoff
03.14.2006 e5e23ee0dd3c339f0a3ae62b0ee5fe476099cc3b
Check null value to prevent NullPointerException
1 files modified
13 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/controls/MatchedValuesFilter.java 13 ●●●● patch | view | raw | blame | history
opendj-sdk/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,