[InterMine Dev] GeneStructureDisplayer throwing NullPointerException - any ideas?

justincc at intermine.org justincc at intermine.org
Thu Apr 28 19:16:17 BST 2016


Yeah, that's what I thought :).  Just haven't done a lot of this error 
message improvement yet so also wanted to see if anybody else had any 
thoughts.  Otherwise, this should be a quick fix - I know how 
frustrating it can be to see an error that gives you very little clue as 
to what went wrong.

On 2016-04-28 19:06, Sam Hokin wrote:
> Well, a NullPointerException is pretty unclear. Yes, if you do the
> check and throw a RuntimeException("Organism.name is null or empty")
> or something like that, it would be very helpful. Generally the IM
> exceptions are pretty informative; this is one case where it wasn't at
> all. But I know it's hard to know in advance what folks are going to
> mess up. ;)
> 
> On 04/28/2016 10:41 AM, Justin Clark-Casey wrote:
>> In GeneModelCache.getGeneModelOrganismSettings() we could check that 
>> organismName != null or "" before proceeding.  Do you think
>> that there is a clearer Exception message that we could throw at this 
>> stage?
> _______________________________________________
> dev mailing list
> dev at lists.intermine.org
> https://lists.intermine.org/mailman/listinfo/dev



More information about the dev mailing list