DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJPA-86
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Ioannis Canellos
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus API JPA

NullPointerException when no properties exist in persistence unit.

Created: 18/Nov/10 01:27 AM   Updated: 08/Dec/10 03:28 PM   Resolved: 18/Nov/10 06:30 AM
Component/s: None
Affects Version/s: 2.1.3
Fix Version/s: 2.1.4

File Attachments: 1. Text File NUCJPA-86-patch.txt (0.9 kB)


Datastore: Apache Derby, Firebird, IBM DB2, HSQL, H2, IBM Informix, Microsoft SQL Server, MySQL, Oracle, PostgreSQL, SapDB - MaxDB, Sybase, LDAP, DB4O, NeoDatis, ODF, Excel, XML, JSON, HBase, Amazon S3, Other


 Description  « Hide
If the persistence unit does not contain any properties a NullPointerException is thrown.

Sort Order: Ascending order - Click to sort in descending order
Ioannis Canellos added a comment - 18/Nov/10 01:28 AM
I am attaching a small patch that checks if properties object is null.

Andy Jefferson added a comment - 18/Nov/10 06:30 AM
SVN trunk has this fixed. thx