From: Roland Haeder Date: Fri, 23 Oct 2015 16:17:16 +0000 (+0200) Subject: possible fix for NPE in JPA? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8a1cb5da5b6f7f3b56b53ba0c886a73b03e77a6;p=addressbook-lib.git possible fix for NPE in JPA? --- diff --git a/src/org/mxchange/addressbook/model/addressbook/entry/UserAddressbookEntry.java b/src/org/mxchange/addressbook/model/addressbook/entry/UserAddressbookEntry.java index d0e849f..5264758 100644 --- a/src/org/mxchange/addressbook/model/addressbook/entry/UserAddressbookEntry.java +++ b/src/org/mxchange/addressbook/model/addressbook/entry/UserAddressbookEntry.java @@ -49,7 +49,7 @@ import org.mxchange.jcontactsbusiness.CompanyContact; @NamedQueries ( @NamedQuery ( name = "SearchUsersAddressbookEntries", - query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a.addressbookId WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC") + query = "SELECT e FROM addressbook_entries AS e INNER JOIN addressbooks AS a ON e.addressbookId = a WHERE e.addressbookId = :addressbook AND a.addressbookUser = :owner ORDER BY e.addressbookEntryId ASC") ) public class UserAddressbookEntry implements AddressbookEntry, Comparable {