You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Frank Cornelis (JIRA)" <ji...@apache.org> on 2014/04/14 12:53:15 UTC

[jira] [Created] (SANTUARIO-383) NPE in DOMXMLSignature

Frank Cornelis created SANTUARIO-383:
----------------------------------------

             Summary: NPE in DOMXMLSignature
                 Key: SANTUARIO-383
                 URL: https://issues.apache.org/jira/browse/SANTUARIO-383
             Project: Santuario
          Issue Type: Bug
    Affects Versions: Java 1.5.6
            Reporter: Frank Cornelis
            Assignee: Colm O hEigeartaigh


DOMXMLSignature.validate is doing:
{code}
ksResult = validateContext.getKeySelector().select
    (ki, KeySelector.Purpose.VERIFY, sm, validateContext);
validationKey = ksResult.getKey();
{code}
this while the javadoc on KeySelector states:
{quote}
Note that an inability to find a key is not considered an exception (null should be returned in that case).
{quote}
Hence you can get an NPE.



--
This message was sent by Atlassian JIRA
(v6.2#6252)