Re: GenericValue and nulls

2011-06-29 Thread BJ Freeman
this is more just my thinking out-loud However if something clicks please chime in. so the problem happens in an iterator. 1) I can run though this looking at one field and it goes all the way through the list. 2) I add processing a second field and it goes through about 49 records then has this

GenericValue and nulls

2011-06-28 Thread BJ Freeman
I know you can, through expressions, setup null_field parms. I have a field as a string and do a GenericValue.getString(fieldname) and it throws a null exception. what I am looking for is to go through I iteration and check if the field is empty(null). is there something I missed?

Re: GenericValue and nulls

2011-06-28 Thread Scott Gray
You'll have to provide more detail about the error, but GenericEntity.getXXX(...) doesn't really throw any sort of exceptions. Regards Scott HotWax Media http://www.hotwaxmedia.com On 29/06/2011, at 10:45 AM, BJ Freeman wrote: I know you can, through expressions, setup null_field parms. I

Re: GenericValue and nulls

2011-06-28 Thread BJ Freeman
I am calling a new routine from controller.java So I am not down to the log4 level yet. denylist = delegator.findList(VisitFllter, EntityCondition .makeCondition(exprs, EntityOperator.AND), null, null, null, Boolean.FALSE); while

Re: GenericValue and nulls

2011-06-28 Thread Scott Gray
The only reason I can see why you'd get an NPE on that line is if denylistrcd were null. GenericValue won't throw an NPE on a call to getString(). Regards Scott On 29/06/2011, at 12:28 PM, BJ Freeman wrote: I am calling a new routine from controller.java So I am not down to the log4 level

Re: GenericValue and nulls

2011-06-28 Thread BJ Freeman
each row has on field that is not null. did not think to testsdenylistrcd for null. will give it a try. Scott Gray sent the following on 6/28/2011 5:41 PM: The only reason I can see why you'd get an NPE on that line is if denylistrcd were null. GenericValue won't throw an NPE on a call to

Re: GenericValue and nulls

2011-06-28 Thread BJ Freeman
nope it is not null here is part of the log as you can see it work till this record what ever it is. 2011-06-28 18:01:42,978 (http-0.0.0.0-8443-1) [ VisitHandler.java:455:INFO ] VisitFllter checking initialUserAgent=Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110420