cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: NullPointerException when ObjectContext.commitChanges() called
Date Fri, 26 Aug 2011 18:21:36 GMT

On Aug 26, 2011, at 9:12 PM, Joel Becker wrote:

> imo it would be good to make a note (jira issue?) for us to catch that error
> earlier in cayenne before it becomes a NullPointerException, so it can be
> thrown with a meaningful message like "You haven't even created a data node.
> What on earth are you THINKING?!" :)

Yeah, good idea. There's no Modeler warning, as it is presumed a user might assign a DataNode
later in runtime, but a runtime check seems reasonable. 

Andrus


Mime
View raw message