Quantcast

Re: Null pointer exception while summarising objectstore

classic Classic list List threaded Threaded
2 messages Options
| Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Null pointer exception while summarising objectstore

Chen Yian
Hi Andrew,

I've got the same problem just few days ago.

There is a bug in ResultsConverter.java .
When a "Date" type column with no values for all rows, you will get this
exception.

Modify the line

if (Date.class.equals(node.getType())) {

to

if (Date.class.equals(node.getType()) && currentColumn != null) {

may resolve the problem.


Best,

Chen


_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
| Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Null pointer exception while summarisingobjectstore

Vallejos, Andrew
That was it.

Thanks!

Andrew

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On
Behalf Of Chen Yian
Sent: Wednesday, November 02, 2011 4:55 AM
To: Intermine ML
Subject: Re: [InterMine Dev] Null pointer exception while
summarisingobjectstore

Hi Andrew,

I've got the same problem just few days ago.

There is a bug in ResultsConverter.java .
When a "Date" type column with no values for all rows, you will get this

exception.

Modify the line

if (Date.class.equals(node.getType())) {

to

if (Date.class.equals(node.getType()) && currentColumn != null) {

may resolve the problem.


Best,

Chen


_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev

_______________________________________________
dev mailing list
[hidden email]
http://mail.intermine.org/cgi-bin/mailman/listinfo/dev
Loading...