Skip to content

NPE in UserDaoImpl when accessing EntityManager #2

@sideisra

Description

@sideisra

Hi,

i tried the demo and had the problem that the EntityManager (em) in UserDaoImpl is always null when accessing it. After some research i found that changing the declaration fixed the problem.
New Declaration:

@Inject
private Provider<EntityManager> em;

Could you please check the problem and implement a fix if necessary?

By the way: great demo, it helps me a lot in my current project :-)

Thanks
Denny

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions