Issue Details (XML | Word | Printable)

Key: NUCJPA-250
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Adrian Ber
Votes: 0
Watchers: 0

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

SingularAttributeImplisVersion() throws NPE

Created: 22/Sep/13 06:23 PM   Updated: 23/Oct/13 11:56 AM   Resolved: 08/Oct/13 03:51 PM
Component/s: API
Affects Version/s: 3.3.2
Fix Version/s: 3.2.6, 3.3.3

File Attachments: 1. Text File Metamodel_version.patch (0.7 kB)
2. Text File MetamodelTest_version.patch (0.6 kB)

Severity: Production

 Description  « Hide
SingularAttributeImpl.isVersion() throws NPE

Sort Order: Ascending order - Click to sort in descending order
Adrian Ber added a comment - 22/Sep/13 06:23 PM
I modified the MetaModel test to reflect this issue.

Adrian Ber added a comment - 22/Sep/13 06:25 PM
Here's the patch to solve this. In SingularAttributeImpl.isVersion() I verify first if versionMetadata is populated - if not, then the attribute is not a version attribute.

Andy Jefferson added a comment - 08/Oct/13 03:51 PM
Patches now in SVN trunk, thx.

Andy Jefferson added a comment - 22/Oct/13 09:09 AM
Also on branches/3.2