Open jonahgreenthal opened 1 year ago
Right now, if an opal with database-generated primary key id has never been saved to the database, then…
id
getId()
Cannot invoke "java.lang.Integer.intValue()" because "lclO" is null
XUserFacing.getId()
getIdAsObject()
getUniqueString()
Cannot load from object array because the return value of "com.blah.persistence.XOpal.getOldValues()" is null
It would be much more helpful if the exception message actually explained what was going on.
Right now, if an opal with database-generated primary key
id
has never been saved to the database, then…getId()
throws an exceptionCannot invoke "java.lang.Integer.intValue()" because "lclO" is null
in theXUserFacing.getId()
methodgetIdAsObject()
returns nullgetUniqueString()
throws an exceptionCannot load from object array because the return value of "com.blah.persistence.XOpal.getOldValues()" is null
It would be much more helpful if the exception message actually explained what was going on.