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

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.

Ioannis Canellos added a comment - 18/Nov/10 01:28 AM
I am attaching a small patch that checks if properties object is null.

Ioannis Canellos made changes - 18/Nov/10 01:28 AM
Field Original Value New Value
Attachment NUCJPA-86-patch.txt [ 11310 ]
Andy Jefferson added a comment - 18/Nov/10 06:30 AM
SVN trunk has this fixed. thx

Andy Jefferson made changes - 18/Nov/10 06:30 AM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.4 [ 11073 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 08/Dec/10 03:28 PM
Status Resolved [ 5 ] Closed [ 6 ]