-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31c5609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit fixes a NPE problem I have with version 1.3.2 (I can't change version number). How could I avoid it (besides using my custom version of Mapper.java inside my project...)
31c5609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I recall (this was over 2 years ago now), that issue arose when a object without an ID field made it to that point in the
Mapper
. In general, that "shouldn't happen" but clearly it did in some cases. So, "avoid that" seems the obvious but not exactly helpful answer. I would seriously consider upgrading, though. A lot of bug fixes have gone in since then and the impending 2.0 release will hopefully be the best one yet.31c5609
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's happening when I have a List of Entities with @reference, it tries to get the ID of the List itself...
I will fix it by turning OFF the logger in the Mapper class, as the query works ok but just logs the error. I have no other choice