From a8a1cb5da5b6f7f3b56b53ba0c886a73b03e77a6 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 23 Oct 2015 18:17:16 +0200 Subject: [PATCH] possible fix for NPE in JPA? --- .../model/addressbook/entry/UserAddressbookEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5