title: Websphere & Tivoli: NPE while trying to create PDAuthorizationContext
body: <p>I am getting the following error when I try to start my Application...</p>
  
  <blockquote>
    <p>[java.lang.IllegalStateException: java.lang.NullPointerException^M
            at com.tivoli.pd.jutil.kb$1.run(kb$1.java:41)^M
            at java.security.AccessController.doPrivileged(AccessController.java:229
    )^M
            at com.tivoli.pd.jutil.kb.c(kb.java:141)^M
            at com.tivoli.pd.jutil.kb.(kb.java:56)^M
            at com.tivoli.pd.jutil.PDContext.(PDContext.java:76)^M
            at com.tivoli.pd.jazn.PDAuthorizationContext.(PDAuthorizationConte
    xt.java:66)^M</p>
  </blockquote>
  
  <p>I double checked the config file was accessible and I could read it. The code I am using looks as follows...</p>
  
  <pre><code>aC = new PDAuthorizationContext(cFile);
  </code></pre>
  
  <p>Is there a way to get more information on what is causing the NPE?</p>
  
  <p><strong>More information!!!</strong></p>
  
  <p>After debuging a bit, it appears the issue comes from this code (they use progaurd so it is a little hard to be 100% confident)...</p>
  
  <pre><code>Certificate[] arrayOfCertificate1 = ((KeyStore)???).getCertificateChain("DefaultID");
  //Throws Null pointer (presumably because array is null)
  Certificate localCertificate1 = arrayOfCertificate1[0];
  </code></pre>
  
  <p><strong>EVEN MORE INFO</strong></p>
  
  <p>This appears to be some kind of dependency conflict (guess), because if I just create a sample App using PDAuthorizationContext it works fine. </p>