Hello All,
I am finally getting the chance to use the QualifierAdditions from Pierre Bernard (thanks Pierre!). I am using the following code that generates a NullPointerException. Can anyone see what I have done wrong?
I am trying to show all Artifacts that have not been specified as "favourites".
public EOFetchSpecification getPubliclyDisplayed() {
EOQualifier q1 = new EOKeyValueQualifier( "userName", EOQualifier.QualifierOperatorEqual, applicationUser.userName()); ExistsInRelationshipQualifier q2 = new ExistsInRelationshipQualifier("applicationUsers", q1); // the inverse EONotQualifier notq2 = new EONotQualifier(q2);
// EOQualifier q3 = new EOAndQualifier( new NSArray( new Object[] { q1, notq2 } ) ); EOFetchSpecification fs = new EOFetchSpecification( "Artifact", notq2, null );
return fs; }
Stack trace:
java.lang.NullPointerException
File | Line# | Method | Package |
| EOSQLExpression.java | 324 | _aliasForRelationshipPath | com.webobjects.eoaccess | EOSQLExpression.java | 259 | _aliasForRelatedAttributeRelationshipPath | com.webobjects.eoaccess | ExistsInRelationshipQualifierSupport.java | 99 | | com.houdah.webobjects.eoaccess.qualifiers | EOQualifierSQLGeneration.java | 151 | _sqlStringForSQLExpression | com.webobjects.eoaccess | EOSQLExpression.java | 1024 | prepareSelectExpressionWithAttributes | com.webobjects.eoaccess | JDBCExpression.java | 273 | prepareSelectExpressionWithAttributes | com.webobjects.jdbcadaptor | EOSQLExpressionFactory.java | 226 | selectStatementForAttributes | com.webobjects.eoaccess | ERXSQLHelper.java | 461 | | er.extensions | ERXSQLHelper.java | 513 | | er.extensions | ERXEOAccessUtilities.java | 284 | | er.extensions | ERXBatchingDisplayGroup.java | 189 | | er.extensions | ERXBatchingDisplayGroup.java | 216 | | er.extensions | ERXBatchingDisplayGroup.java | 276 | | |