Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in AbstractMetadata.setInitialized creating instance of DummyMetadata #1823

Closed
1 of 2 tasks
benhamidene opened this issue May 10, 2022 · 1 comment
Closed
1 of 2 tasks

Comments

@benhamidene
Copy link

benhamidene commented May 10, 2022

  • Bug report
  • Feature Request

Description

EventAdmin not injected in constructor
The creation of a DummyMetaData component is not possible, it throws a NPE , as the firing of an Event in setInitialized needs an injected instance of the EventAdmin (using @reference)
But The injection does not occur in the constructor

	protected void setInitialized() {
		this.isInitialized.set(true);
	        EventBuilder.post(getEventAdmin(), Events.AFTER_IS_INITIALIZED);
	}

getEventAdmin() returns null

Desired functionality.

So we need a better place to fire the Event Events.AFTER_IS_INITIALIZED
May be in activate() ?

@sfeilmeier
Copy link
Contributor

Thanks for reporting. The issue should be fixed in #1824.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants