I have to revive this ancient thread because I'm running into the same problem again.
I get a NullPointerException when calling IContext.getEntities(null) in the JNDI CP
Nowadays the concerned line looks like this:
_log.debug("Searching for Entities matching filter: " + filter == null ? null : filter.toString()
+ " as: " + _getIdentity() + " in context: " + _contextURIs);
It should be changed to this in order to avoid the NullPointerException:
_log.debug("Searching for Entities matching filter: " + (filter == null ? null : filter.toString())
+ " as: " + _getIdentity() + " in context: " + _contextURIs);
Or even simpler:
_log.debug("Searching for Entities matching filter: " + filter
+ " as: " + _getIdentity() + " in context: " + _contextURIs);
Markus
On Thu, Jan 17, 2008 at 6:40 PM, Tom Doman
<tdoman@xxxxxxxxxx> wrote:
Yeah, that should be okay. I'll fix that.
Tom
When I try to do this:
Iterator digitalSubjects = this.context.getSubjects(null);
I get:
java.lang.NullPointerException
at org.eclipse.higgins.idas.cp.jndi.JNDIContext.getSubjects(
JNDIContext.java:1422)
at org.eclipse.higgins.idas.cp.jndi.JNDIContext.getSubjects(
JNDIContext.java:1409)
Is it wrong to pass null to that method (I want all digital subjects). If
it's a legal value, I propose to apply the attached patch to fix this.
Markus
_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev