From: youjun g. <you...@ya...> - 2009-12-22 18:27:31
|
I checked with Bill and he get a solution. The column should not be null. It is very likely in our code, given a submission we want to retrieve the info of the submitter so a call like User user=submission.getSubmitter() if this returns null, then user.getXXX() will cause a null pointer.exception Youjun On Tue, Dec 22, 2009 at 11:44 AM, Hilmar Lapp <hl...@ne...> wrote: > What is supposed to be in this column? I gather that if null values are in > the column, then the data model actually permits this value to be missing. > If the application code assumes that it is always present, then either it is > making a wrong assumption and needs to be fixed, or the data model is wrong > in that it ought to be mandating a value for the column. > > Which of the two is the case? > > -hilmar > > On Dec 22, 2009, at 11:21 AM, youjun guo wrote: > > Dear All, > > Upon working on the unit test I found lots of "null" in table > "submission"/column "user_id", which cause null point exception on test > suite. > > Hilmar and Rutger, the table may need to be reloaded. > > Youjun > > > > > -- > =========================================================== > : Hilmar Lapp -:- Durham, NC -:- informatics.nescent.org : > =========================================================== > > > > |