You were correct. I hadn't done anything with my subQuery yet so toString() was
returning a null. I was tracking a NPE and I was printing out after different lines
and that one threw an error so I started to think that was the problem. Its not.
Now I have to find the real NPE and then figure out why my query is not being
constructed the way I thought it would.
Thanks for putting in the patch though!
Charlie
Jakob Braeuchi said the following on 6/9/2004 4:01 PM:
hi charles,
i just commited a fix to ReportQuery and QueryByCriteria to prevent NPE in toString()
hth jakob
Jakob Braeuchi wrote:
hi charles,
are you sure that the subQuery is null ?
imo the npe is coming from the method toString() because there are no columns defined.
jakob
Charles N. Harvey III wrote:
Hello. I am creating a ReportQueryByCriteria and it is turning up null. And I don't even understand how that can happen.
Criteria criteria = new Criteria();
ReportQueryByCriteria subQuery = QueryFactory.newReportQuery( MyObject.class, criteria );
System.out.println( "\tReportQueryByCriteria: " + subQuery.toString() );
subQuery is null. I am only trying to print it to see what it is doing
and I can't do that. Is it because my criteria is empty? That shouldn't do it.
Does it not like the MyObject?
Has anyone else had this happen before?
Thanks a lot.
Charlie
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
